Skip to content

Commit

Permalink
Merge pull request #43 from weierophinney/hotfix/bump-minor-fix
Browse files Browse the repository at this point in the history
Fix which branch the minor release bump in the changelog targets.
  • Loading branch information
Ocramius authored Aug 12, 2020
2 parents a1d61ca + c17d553 commit 01ddc3d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion src/Application/Command/SwitchDefaultBranchToNextMinor.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public function execute(InputInterface $input, OutputInterface $output): int
BumpAndCommitChangelogVersion::BUMP_MINOR,
$repositoryPath,
$releaseVersion,
$newestBranch
$nextDefaultBranch
);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit 01ddc3d

Please sign in to comment.