コード例 #1
0
        public void DoesNotTakeVersionFromNameOfNonReleaseBranch()
        {
            using var fixture = new BaseGitFlowRepositoryFixture("1.0.0");
            fixture.CreateAndMergeBranchIntoDevelop("pull-request/improved-by-upgrading-some-lib-to-4.5.6");
            fixture.CreateAndMergeBranchIntoDevelop("hotfix/downgrade-some-lib-to-3.2.1-to-avoid-breaking-changes");

            fixture.AssertFullSemver("1.1.0-alpha.5");
        }
コード例 #2
0
        public void TakesVersionFromNameOfReleaseBranch()
        {
            using var fixture = new BaseGitFlowRepositoryFixture("1.0.0");
            fixture.CreateAndMergeBranchIntoDevelop("release/2.0.0");

            fixture.AssertFullSemver("2.1.0-alpha.2");
        }
コード例 #3
0
        public void TakesVersionFromNameOfBranchThatIsReleaseByConfig()
        {
            var config = new Config
            {
                Branches = new Dictionary <string, BranchConfig> {
                    { "support", new BranchConfig {
                          IsReleaseBranch = true
                      } }
                }
            };

            using var fixture = new BaseGitFlowRepositoryFixture("1.0.0");
            fixture.CreateAndMergeBranchIntoDevelop("support/2.0.0");

            fixture.AssertFullSemver(config, "2.1.0-alpha.2");
        }