Skip to content

Commit

Permalink
kpromo(pr): Only append "releng: " to commit msg for RelEng promotions
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Augustus <[email protected]>
  • Loading branch information
justaugustus committed Nov 18, 2021
1 parent 4ca0c9a commit 9e3b952
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cmd/kpromo/cmd/pr/pr.go
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,10 @@ func runPromote(opts *promoteOptions) error {
return errors.Wrap(err, "adding image manifest to staging area")
}

commitMessage := "releng: Image promotion for " + opts.project + " " + strings.Join(opts.tags, " / ")
commitMessage := "Image promotion for " + opts.project + " " + strings.Join(opts.tags, " / ")
if opts.project == image.StagingRepoSuffix {
commitMessage = "releng: " + commitMessage
}

// Commit files
logrus.Debug("Creating commit")
Expand Down

0 comments on commit 9e3b952

Please sign in to comment.