mirror of
https://github.com/status-im/status-github-bot.git
synced 2025-02-27 20:30:37 +00:00
Ignore COMMENT review state when computing whether to move a PR to IN TEST
This commit is contained in:
parent
038944f361
commit
86c17d5426
@ -40,7 +40,13 @@ async function getReviewApprovalState(github, robot, repo, pullRequest) {
|
||||
github.pullRequests.getReviews({owner: ownerName, repo: repoName, number: prNumber}),
|
||||
res => res.data)
|
||||
for (var review of ghreviews) {
|
||||
finalReviewsMap.set(review.user.id, review.state)
|
||||
switch (review.state) {
|
||||
case 'APPROVED':
|
||||
case 'CHANGES_REQUESTED':
|
||||
case 'PENDING':
|
||||
finalReviewsMap.set(review.user.id, review.state)
|
||||
break
|
||||
}
|
||||
}
|
||||
var finalReviews = Array.from(finalReviewsMap.values())
|
||||
if (process.env.DRY_RUN_PR_TO_TEST) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user