diff options
| author | 2018-11-19 20:54:40 +0000 | |
|---|---|---|
| committer | 2018-11-19 20:54:40 +0000 | |
| commit | 5767a1b32ed46579074b841bb86601a8d8b0de8e (patch) | |
| tree | ef8120bb3ef0ed8153ff43e8958a8b5f82a3d757 /modules/github.py | |
| parent | Don't enable write throttling until we get 005 (diff) | |
| signature | ||
Show branch when a pull request is merged
Diffstat (limited to 'modules/github.py')
| -rw-r--r-- | modules/github.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/github.py b/modules/github.py index 56a9d06a..171b44f7 100644 --- a/modules/github.py +++ b/modules/github.py @@ -161,7 +161,10 @@ class Module(ModuleManager.BaseModule): action_desc = action if action == "closed": if data["pull_request"]["merged"]: - action_desc = utils.irc.color("merged", utils.consts.GREEN) + branch = data["pull_request"]["base"]["ref"] + action_desc = "%s into %s" % + (utils.irc.color("merged", utils.consts.GREEN), + utils.irc.color(branch, utils.consts.BLUE)) else: action_desc = utils.irc.color("closed without merging", utils.consts.RED) |
