Skip to content

Commit

Permalink
Handle rate limit exceeded merge error (#119)
Browse files Browse the repository at this point in the history
  • Loading branch information
ReallyLiri committed Oct 22, 2020
1 parent 8848045 commit 5664da2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.idea
.env
node_modules/
3 changes: 2 additions & 1 deletion lib/merge.js
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,8 @@ function checkMergeError(e) {
const m = e ? e.message || "" : "";
if (
m.includes("review is required by reviewers with write access") ||
m.includes("reviews are required by reviewers with write access")
m.includes("reviews are required by reviewers with write access") ||
m.includes("API rate limit exceeded")
) {
logger.info("Cannot merge PR:", m);
return "failure";
Expand Down

0 comments on commit 5664da2

Please sign in to comment.