Skip to content

Commit

Permalink
Include branch name for kubernetes-sigs/image-build project (#3489)
Browse files Browse the repository at this point in the history
Co-authored-by: Saurabh Parekh <[email protected]>
  • Loading branch information
eks-distro-pr-bot and sp1999 authored Jul 18, 2024
1 parent 3d6879e commit 91d17f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/version-tracker/pkg/commands/upgrade/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ func Run(upgradeOptions *types.UpgradeOptions) error {
commitMessage = "Bump Bottlerocket versions to latest release"
pullRequestBody = fmt.Sprintf(constants.BottlerocketUpgradePullRequestBody, currentBottlerocketVersion, latestBottlerocketVersion)
} else {
headBranchName = fmt.Sprintf("update-%s-%s-and-bottlerocket", projectOrg, projectRepo)
headBranchName = fmt.Sprintf("update-%s-%s-and-bottlerocket-%s", projectOrg, projectRepo, branchName)
commitMessage = fmt.Sprintf("Bump %s and Bottlerocket versions to latest release", projectName)
pullRequestBody = fmt.Sprintf(constants.CombinedImageBuilderBottlerocketUpgradePullRequestBody, currentRevision, latestRevision, currentBottlerocketVersion, latestBottlerocketVersion)
}
Expand Down Expand Up @@ -429,7 +429,7 @@ func Run(upgradeOptions *types.UpgradeOptions) error {
if err != nil {
return fmt.Errorf("pushing updated project version files for [%s] project: %v", projectName, err)
}

// Update the title of the pull request depending on the base branch name.
title := commitMessage
if baseBranchName != constants.MainBranchName {
Expand Down

0 comments on commit 91d17f7

Please sign in to comment.