From 676d8b95cd802cf1680610877a19aa60aa7d849d Mon Sep 17 00:00:00 2001 From: Rechi Date: Sun, 4 Mar 2018 10:34:24 +0100 Subject: [PATCH] Handle (un)labeled pull request hooks --- src/main/java/org/jenkinsci/plugins/ghprb/GhprbRepository.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/jenkinsci/plugins/ghprb/GhprbRepository.java b/src/main/java/org/jenkinsci/plugins/ghprb/GhprbRepository.java index 978c1a9ce..1b5906108 100644 --- a/src/main/java/org/jenkinsci/plugins/ghprb/GhprbRepository.java +++ b/src/main/java/org/jenkinsci/plugins/ghprb/GhprbRepository.java @@ -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;