From de60d245b59ec18f5e247bf6bfaaaf80f559160b Mon Sep 17 00:00:00 2001 From: jesopo Date: Sun, 9 Dec 2018 19:36:23 +0000 Subject: [PATCH] Show newly added labels when a pull request is labeled --- modules/github.py | 2 ++ 1 file changed, 2 insertions(+) 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"])