Skip to content

Commit

Permalink
Ignore draft pull requests
Browse files Browse the repository at this point in the history
  • Loading branch information
Hexcles committed Jun 3, 2019
1 parent 0aa6d31 commit cd003b2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ app.post('/github-hook', function (req, res, next) {
if (!body) return;
if (body.sender && body.sender.login == "wpt-pr-bot") return;
if (!body.pull_request && (body.issue && !body.issue.pull_request)) return;
if (body.pull_request && body.pull_request.draft) return;
// END FILTERNG //

var action = body.action;
Expand Down

0 comments on commit cd003b2

Please sign in to comment.