mirror of
https://github.com/status-im/status-github-bot.git
synced 2025-02-28 04:40:45 +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}),
|
github.pullRequests.getReviews({owner: ownerName, repo: repoName, number: prNumber}),
|
||||||
res => res.data)
|
res => res.data)
|
||||||
for (var review of ghreviews) {
|
for (var review of ghreviews) {
|
||||||
|
switch (review.state) {
|
||||||
|
case 'APPROVED':
|
||||||
|
case 'CHANGES_REQUESTED':
|
||||||
|
case 'PENDING':
|
||||||
finalReviewsMap.set(review.user.id, review.state)
|
finalReviewsMap.set(review.user.id, review.state)
|
||||||
|
break
|
||||||
|
}
|
||||||
}
|
}
|
||||||
var finalReviews = Array.from(finalReviewsMap.values())
|
var finalReviews = Array.from(finalReviewsMap.values())
|
||||||
if (process.env.DRY_RUN_PR_TO_TEST) {
|
if (process.env.DRY_RUN_PR_TO_TEST) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user