Show newly added labels when a pull request is labeled

This commit is contained in:
jesopo 2018-12-09 19:36:23 +00:00
parent dea63d9cf2
commit de60d245b5

View file

@ -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"])