Skip to content

Commit

Permalink
perf: add conflict close
Browse files Browse the repository at this point in the history
  • Loading branch information
xrkffgg committed May 2, 2021
1 parent 5228add commit 3adb50e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7401,6 +7401,7 @@ async function run() {
const onePR = await getOnePR(owner, repo, it.number);
if (onePR.mergeable_state === 'dirty') {
await doPRReview(owner, repo, number, 'REQUEST_CHANGES', conflictReviewBody);
await doClosePR(owner, repo, number);
return false;
}
if (successReview === 'true') {
Expand Down
1 change: 1 addition & 0 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ async function run() {
const onePR = await getOnePR(owner, repo, it.number);
if (onePR.mergeable_state === 'dirty') {
await doPRReview(owner, repo, number, 'REQUEST_CHANGES', conflictReviewBody);
await doClosePR(owner, repo, number);
return false;
}
if (successReview === 'true') {
Expand Down

0 comments on commit 3adb50e

Please sign in to comment.