Color "merged" and "closed without merging" in green and red respectively
This commit is contained in:
parent
773412cdb0
commit
d961416401
1 changed files with 5 additions and 2 deletions
|
@ -95,8 +95,11 @@ class Module(ModuleManager.BaseModule):
|
||||||
action = data["action"]
|
action = data["action"]
|
||||||
action_desc = action
|
action_desc = action
|
||||||
if action == "closed":
|
if action == "closed":
|
||||||
merged = data["pull_request"]["merged"]
|
if data["pull_request"]["merged"]:
|
||||||
action_desc = "merged" if merged else "closed without merging"
|
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_number = data["pull_request"]["number"]
|
||||||
pr_title = data["pull_request"]["title"]
|
pr_title = data["pull_request"]["title"]
|
||||||
|
|
Loading…
Reference in a new issue