mirror of
https://git.vectorsigma.ru/public/atlantis.git
synced 2026-07-29 00:48:21 +00:00
fix: Set mergeable correctly when branch protection doesn't require reviewers (#2470)
* Allow no required reviewers * Fix comment in tests Co-authored-by: Stas Ostrovskyi <stasostrovskyi@users.noreply.github.com>
This commit is contained in:
@@ -365,7 +365,7 @@ func (g *GithubClient) GetPullReviewDecision(repo models.Repo, pull models.PullR
|
||||
return approvalStatus, errors.Wrap(err, "getting reviewDecision")
|
||||
}
|
||||
|
||||
if query.Repository.PullRequest.ReviewDecision == "APPROVED" {
|
||||
if query.Repository.PullRequest.ReviewDecision == "APPROVED" || len(query.Repository.PullRequest.ReviewDecision) == 0 {
|
||||
return true, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user