From b692bc7e8827b489a32be74e47565bb052ce046f Mon Sep 17 00:00:00 2001 From: jesopo Date: Tue, 9 Jul 2019 09:46:10 +0100 Subject: Show new label for PR 'labeled' events --- modules/git_webhooks/github.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'modules/git_webhooks') 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"]) -- cgit v1.3.1-10-gc9f91