Skip to content

Commit

Permalink
fix: hotifx-branch should ends with '.x'
Browse files Browse the repository at this point in the history
  • Loading branch information
sitepark-veltrup committed May 12, 2023
1 parent 900d877 commit dabfc7d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/ReleaseManagement.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,10 @@ public function startHotfix(): string
if ($hotfixVersion === null) {
throw new \RuntimeException('Hotfix version could not be determined.');
}
$this->exec('git checkout -b hotfix/' . $hotfixVersion . ' ' . $releaseVersion);
$this->exec('git push origin hotfix/' . $hotfixVersion);
[$major, $minor] = explode('.', $hotfixVersion);
$hotfixBranch = 'hotfix/' . $major . '.' . $minor . '.x';
$this->exec('git checkout -b ' . $hotfixBranch . ' ' . $releaseVersion);
$this->exec('git push origin ' . $hotfixBranch);

return $hotfixVersion;
}
Expand Down

0 comments on commit dabfc7d

Please sign in to comment.