aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorGravatar jesopo2019-03-03 22:49:06 +0000
committerGravatar jesopo2019-03-03 22:49:06 +0000
commit4aa86f865c7347f8b14c08a40e8221bbdfd20ad3 (patch)
tree1dd5c9823b80503a38cabcfc5cd831dd0693c697 /modules
parentMinor refactors across line_handler (diff)
signature
Remove added/removed/modified counts from commits (github)
Diffstat (limited to 'modules')
-rw-r--r--modules/github/__init__.py20
1 files changed, 4 insertions, 16 deletions
diff --git a/modules/github/__init__.py b/modules/github/__init__.py
index 187ce514..b4df37bd 100644
--- a/modules/github/__init__.py
+++ b/modules/github/__init__.py
@@ -468,14 +468,9 @@ class Module(ModuleManager.BaseModule):
author = utils.irc.bold(data["pusher"]["name"])
url = self._short_url(COMMIT_URL % (full_name, id))
- added = self._added(len(commit["added"]))
- removed = self._removed(len(commit["removed"]))
- modified = self._modified(len(commit["modified"]))
-
outputs.append(
- "%s %spushed to %s [%s/%s/%s files] %s - %s"
- % (author, forced, branch, added, removed, modified,
- message, url))
+ "%s %spushed to %s: %s - %s"
+ % (author, forced, branch, message, url))
else:
first_id = data["before"]
last_id = data["commits"][-1]["id"]
@@ -483,15 +478,8 @@ class Module(ModuleManager.BaseModule):
url = self._short_url(
COMMIT_RANGE_URL % (full_name, first_id, last_id))
- commits = data["commits"]
- added = self._added(len(self._flat_unique(commits, "added")))
- removed = self._removed(len(self._flat_unique(commits, "removed")))
- modified = self._modified(len(self._flat_unique(commits,
- "modified")))
-
- outputs.append("%s %spushed %d commits to %s [%s/%s/%s files] - %s"
- % (pusher, forced, len(data["commits"]), branch,
- added, removed, modified, url))
+ outputs.append("%s %spushed %d commits to %s - %s"
+ % (pusher, forced, len(data["commits"]), branch, url))
return outputs