aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorGravatar jesopo2018-12-09 19:36:23 +0000
committerGravatar jesopo2018-12-09 19:36:23 +0000
commitde60d245b59ec18f5e247bf6bfaaaf80f559160b (patch)
tree0cb80441fd3f510ea703694f6903573bcea1921b /modules
parentBy the time we take ref counts, we've already removed `module` from (diff)
signature
Show newly added labels when a pull request is labeled
Diffstat (limited to 'modules')
-rw-r--r--modules/github.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/github.py b/modules/github.py
index 515b4180..9c6ccd13 100644
--- a/modules/github.py
+++ b/modules/github.py
@@ -177,6 +177,8 @@ class Module(ModuleManager.BaseModule):
utils.consts.RED)
elif action == "synchronize":
action_desc = "committed to"
+ elif action == "labeled":
+ action_desc = "labeled as '%s'" % data["pull_request"]["labels"][-1]
pr_title = data["pull_request"]["title"]
author = utils.irc.bold(data["sender"]["login"])