Skip to content

Commit

Permalink
chore(backport release-0.8): fix(promotion): wait for open pull reque…
Browse files Browse the repository at this point in the history
…st (#2452)
  • Loading branch information
akuitybot committed Aug 21, 2024
1 parent 5b6cfa0 commit dc2c81b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/controller/promotion/pullrequest.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,9 @@ func reconcilePullRequest(
if err != nil {
return "", err
}
if !pr.IsOpen() {
if pr.IsOpen() {
promo.Status.Phase = kargoapi.PromotionPhaseRunning
} else {
merged, err := gpClient.IsPullRequestMerged(ctx, prNumber)
if err != nil {
return "", err
Expand Down

0 comments on commit dc2c81b

Please sign in to comment.