Skip to content
This repository has been archived by the owner on Jan 31, 2025. It is now read-only.

Commit

Permalink
actions: do not ask to merge release PR for prereleases (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
hacdias authored Jan 25, 2024
1 parent f7debda commit adf13d1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion actions/prepare_branch.go
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,10 @@ Please approve after all the required commits are cherry-picked.`, branch, repos
if err != nil {
return err
}
if !pr.GetMerged() && !util.ConfirmPR(pr) {

if ctx.Version.IsPrerelease() {
fmt.Printf(`Release PR ready at %s. Do not merge it.`, pr.GetHTMLURL())
} else if !pr.GetMerged() && !util.ConfirmPR(pr) {
return fmt.Errorf("%s not merged", pr.GetHTMLURL())
}
}
Expand Down

0 comments on commit adf13d1

Please sign in to comment.