diff options
| author | 2019-07-09 09:46:10 +0100 | |
|---|---|---|
| committer | 2019-07-09 09:46:25 +0100 | |
| commit | b692bc7e8827b489a32be74e47565bb052ce046f (patch) | |
| tree | 5f366bef800a7ffbc78ac8acad8cd5d46f67e9e7 | |
| parent | show new label for issue 'labeled' events (diff) | |
| signature | ||
Show new label for PR 'labeled' events
| -rw-r--r-- | modules/git_webhooks/github.py | 2 |
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"]) |
