From dc2c81bb032c199962de08ba7e7fe1d609a86b63 Mon Sep 17 00:00:00 2001 From: akuitybot <105087302+akuitybot@users.noreply.github.com> Date: Wed, 21 Aug 2024 09:54:12 -0700 Subject: [PATCH] chore(backport release-0.8): fix(promotion): wait for open pull request (#2452) --- internal/controller/promotion/pullrequest.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/internal/controller/promotion/pullrequest.go b/internal/controller/promotion/pullrequest.go index 8e6ddcca4..89716cc0f 100644 --- a/internal/controller/promotion/pullrequest.go +++ b/internal/controller/promotion/pullrequest.go @@ -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