diff options
| author | 2019-06-22 22:42:52 +0100 | |
|---|---|---|
| committer | 2019-06-22 22:42:52 +0100 | |
| commit | 2f4475a70f0153312799f52d55b7275f54dc1563 (patch) | |
| tree | 164bd56886e0bae85f9d2f3341fbb07ff5eb0730 /modules | |
| parent | v1.10.0-rc1 (diff) | |
| signature | ||
colorise ref for `delete` event, same as for `create` event
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/github/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/github/__init__.py b/modules/github/__init__.py index 3dee37d5..46106a91 100644 --- a/modules/github/__init__.py +++ b/modules/github/__init__.py @@ -688,9 +688,10 @@ class Module(ModuleManager.BaseModule): def delete(self, full_name, data): ref = data["ref"] + ref_color = utils.irc.color(ref, COLOR_BRANCH) type = data["ref_type"] sender = utils.irc.bold(data["sender"]["login"]) - return ["%s deleted a %s: %s" % (sender, type, ref)] + return ["%s deleted a %s: %s" % (sender, type, ref_color)] def release(self, full_name, data): action = data["action"] |
