aboutsummaryrefslogtreecommitdiff
path: root/modules/github.py
diff options
context:
space:
mode:
Diffstat (limited to 'modules/github.py')
-rw-r--r--modules/github.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/modules/github.py b/modules/github.py
index f1c8d780..e051192c 100644
--- a/modules/github.py
+++ b/modules/github.py
@@ -95,8 +95,11 @@ class Module(ModuleManager.BaseModule):
action = data["action"]
action_desc = action
if action == "closed":
- merged = data["pull_request"]["merged"]
- action_desc = "merged" if merged else "closed without merging"
+ if data["pull_request"]["merged"]:
+ action_desc = utils.irc.color("merged", utils.irc.COLOR_GREEN)
+ else:
+ action_desc = utils.irc.color("closed without merging",
+ utils.irc.COLOR_RED)
pr_number = data["pull_request"]["number"]
pr_title = data["pull_request"]["title"]