aboutsummaryrefslogtreecommitdiff
path: root/modules/git_webhooks
diff options
context:
space:
mode:
authorGravatar jesopo2019-07-09 09:46:10 +0100
committerGravatar jesopo2019-07-09 09:46:25 +0100
commitb692bc7e8827b489a32be74e47565bb052ce046f (patch)
tree5f366bef800a7ffbc78ac8acad8cd5d46f67e9e7 /modules/git_webhooks
parentshow new label for issue 'labeled' events (diff)
signature
Show new label for PR 'labeled' events
Diffstat (limited to 'modules/git_webhooks')
-rw-r--r--modules/git_webhooks/github.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/git_webhooks/github.py b/modules/git_webhooks/github.py
index 4abc38fc..370927b5 100644
--- a/modules/git_webhooks/github.py
+++ b/modules/git_webhooks/github.py
@@ -283,6 +283,8 @@ class GitHub(object):
for i, output in enumerate(outputs):
outputs[i] = "[PR] %s" % output
return outputs
+ elif action == "labeled":
+ action_desc = "labled %s as '%s'" % (number, data["label"]["name"])
pr_title = data["pull_request"]["title"]
url = self._short_url(data["pull_request"]["html_url"])