Skip to content

Commit

Permalink
React when draft pull requests are marked "ready"
Browse files Browse the repository at this point in the history
GitHub recently added support for "draft" pull requests, and this
project subsequently began ignoring them upon creation [2]. Complete the
implementation of that change by recognizing when "drafts" move to a
"ready" state and acting on the pull request.

[1] https://github.blog/2019-02-14-introducing-draft-pull-requests/
[2] cd003b2
  • Loading branch information
jugglinmike authored and Hexcles committed Jun 4, 2019
1 parent f1aa106 commit a352e4a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,9 @@ app.post('/github-hook', function (req, res, next) {
metadata(n, u, content).then(function(metadata) {
return removeReviewableBanner(n, metadata);
});
} else if (action == "opened" || action == "synchronize" || (isComment && action == "created")) {
} else if (action == "opened" || action == "synchronize" ||
action == "ready_for_review" ||
(isComment && action == "created")) {
if (n in currentlyRunning) {
logArgs("#" + n + " is already being processed.");
return;
Expand Down

0 comments on commit a352e4a

Please sign in to comment.