mirror of
https://github.com/status-im/status-github-bot.git
synced 2025-02-17 23:57:20 +00:00
Cleanup
This commit is contained in:
parent
f5f1109404
commit
44662eeed2
@ -21,7 +21,7 @@ async function _getPullRequestReviewStates (github, prInfo) {
|
|||||||
const ghreviews = await github.paginate(
|
const ghreviews = await github.paginate(
|
||||||
github.pullRequests.getReviews({ ...prInfo, per_page: 100 }),
|
github.pullRequests.getReviews({ ...prInfo, per_page: 100 }),
|
||||||
res => res.data)
|
res => res.data)
|
||||||
for (var review of ghreviews) {
|
for (const review of ghreviews) {
|
||||||
switch (review.state) {
|
switch (review.state) {
|
||||||
case 'APPROVED':
|
case 'APPROVED':
|
||||||
case 'CHANGES_REQUESTED':
|
case 'CHANGES_REQUESTED':
|
||||||
|
Loading…
x
Reference in New Issue
Block a user