diff --git a/CHANGELOG.md b/CHANGELOG.md index 01a81ea1..dbaaf184 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,7 +22,7 @@ All notable changes to this project will be documented in this file, in reverse ### Fixed -- Nothing. +- [#43](https://github.com/laminas/automatic-releases/pull/43) fixes which branch the minor changelog bump is targetted to to correctly be the next default branch. ## 1.2.0 - 2020-08-12 diff --git a/src/Application/Command/SwitchDefaultBranchToNextMinor.php b/src/Application/Command/SwitchDefaultBranchToNextMinor.php index ead316a9..c56990d4 100644 --- a/src/Application/Command/SwitchDefaultBranchToNextMinor.php +++ b/src/Application/Command/SwitchDefaultBranchToNextMinor.php @@ -81,7 +81,7 @@ public function execute(InputInterface $input, OutputInterface $output): int BumpAndCommitChangelogVersion::BUMP_MINOR, $repositoryPath, $releaseVersion, - $newestBranch + $nextDefaultBranch ); } diff --git a/test/unit/Application/SwitchDefaultBranchToNextMinorTest.php b/test/unit/Application/SwitchDefaultBranchToNextMinorTest.php index 1e3cc2c4..d8b16c03 100644 --- a/test/unit/Application/SwitchDefaultBranchToNextMinorTest.php +++ b/test/unit/Application/SwitchDefaultBranchToNextMinorTest.php @@ -171,7 +171,7 @@ public function testWillSwitchToNewlyCreatedDefaultBranchWhenNoNewerReleaseBranc BumpAndCommitChangelogVersion::BUMP_MINOR, $workspace, SemVerVersion::fromMilestoneName('1.2.3'), - BranchName::fromName('1.2.x') + BranchName::fromName('1.3.x') ); $this->setDefaultBranch->expects(self::once())