Skip to content

Commit

Permalink
fix: Updating the DetailedMergeStatus
Browse files Browse the repository at this point in the history
  • Loading branch information
HB-Balaji committed Feb 26, 2024
1 parent 2648f2d commit 92c1129
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/events/vcs/gitlab_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ func (g *GitlabClient) PullIsMergeable(repo models.Repo, pull models.PullRequest
retryLimit := 3
for attempt := 0; attempt < retryLimit; attempt++ {
if ((ok && (mr.DetailedMergeStatus == "mergeable" || mr.DetailedMergeStatus == "ci_still_running")) ||
(!ok && mr.MergeStatus == "can_be_merged")) &&
(!ok && mr.DetailedMergeStatus == "can_be_merged")) &&
mr.ApprovalsBeforeMerge <= 0 &&
mr.BlockingDiscussionsResolved &&
!mr.WorkInProgress &&
Expand Down

0 comments on commit 92c1129

Please sign in to comment.