From 399723db942a83542693d4759aa993ffb62cf2d7 Mon Sep 17 00:00:00 2001 From: jesopo Date: Mon, 11 Feb 2019 11:17:07 +0000 Subject: [PATCH] Show file add/remove/change *after* saying it's a push (github) --- modules/github/__init__.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/github/__init__.py b/modules/github/__init__.py index e2385fd6..9a9e97a7 100644 --- a/modules/github/__init__.py +++ b/modules/github/__init__.py @@ -422,8 +422,8 @@ class Module(ModuleManager.BaseModule): modified = self._modified(len(commit["modified"])) outputs.append( - "[%s/%s/%s files] %s %spushed to %s: %s - %s" - % (added, removed, modified, author, forced, branch, + "%s %spushed to %s [%s/%s/%s files] %s - %s" + % (author, forced, branch, added, removed, modified, message, url)) else: first_id = self._short_hash(data["before"]) @@ -438,9 +438,9 @@ class Module(ModuleManager.BaseModule): modified = self._modified(len(self._flat_unique(commits, "modified"))) - outputs.append("[%s/%s/%s files] %s %spushed %d commits to %s - %s" - % (added, removed, modified, pusher, forced, - len(data["commits"]), branch, url)) + outputs.append("%s %spushed %d commits to %s [%s/%s/%s files] - %s" + % (pusher, forced, len(data["commits"]), branch, + added, removed, modified, url)) return outputs