Skip to content

Commit 01ddc3d

Browse files
authored
Merge pull request #43 from weierophinney/hotfix/bump-minor-fix
Fix which branch the minor release bump in the changelog targets.
2 parents a1d61ca + c17d553 commit 01ddc3d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ All notable changes to this project will be documented in this file, in reverse
2222

2323
### Fixed
2424

25-
- Nothing.
25+
- [#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.
2626

2727
## 1.2.0 - 2020-08-12
2828

src/Application/Command/SwitchDefaultBranchToNextMinor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public function execute(InputInterface $input, OutputInterface $output): int
8181
BumpAndCommitChangelogVersion::BUMP_MINOR,
8282
$repositoryPath,
8383
$releaseVersion,
84-
$newestBranch
84+
$nextDefaultBranch
8585
);
8686
}
8787

test/unit/Application/SwitchDefaultBranchToNextMinorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ public function testWillSwitchToNewlyCreatedDefaultBranchWhenNoNewerReleaseBranc
171171
BumpAndCommitChangelogVersion::BUMP_MINOR,
172172
$workspace,
173173
SemVerVersion::fromMilestoneName('1.2.3'),
174-
BranchName::fromName('1.2.x')
174+
BranchName::fromName('1.3.x')
175175
);
176176

177177
$this->setDefaultBranch->expects(self::once())

0 commit comments

Comments
 (0)