Skip to content

Commit

Permalink
Handle (un)labeled pull request hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
Rechi committed Mar 4, 2018
1 parent c15d510 commit 676d8b9
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,8 @@ void onPullRequestHook(PullRequest pr) throws IOException {
doSave = true;
} else if (!trigger.isActive()) {
LOGGER.log(Level.FINE, "Not processing Pull request since the build is disabled");
} else if ("edited".equals(action) || "opened".equals(action) || "reopened".equals(action) || "synchronize".equals(action)) {
} else if ("edited".equals(action) || "labeled".equals(action) || "opened".equals(action)
|| "reopened".equals(action) || "synchronize".equals(action) || "unlabeled".equals(action)) {
GhprbPullRequest pull = getPullRequest(ghpr, number);
pull.check(ghpr, true);
doSave = true;
Expand Down

0 comments on commit 676d8b9

Please sign in to comment.