Show file add/remove/change *after* saying it's a push (github)

This commit is contained in:
jesopo 2019-02-11 11:17:07 +00:00
parent 18bb7ec4af
commit 399723db94

View file

@ -422,8 +422,8 @@ class Module(ModuleManager.BaseModule):
modified = self._modified(len(commit["modified"])) modified = self._modified(len(commit["modified"]))
outputs.append( outputs.append(
"[%s/%s/%s files] %s %spushed to %s: %s - %s" "%s %spushed to %s [%s/%s/%s files] %s - %s"
% (added, removed, modified, author, forced, branch, % (author, forced, branch, added, removed, modified,
message, url)) message, url))
else: else:
first_id = self._short_hash(data["before"]) first_id = self._short_hash(data["before"])
@ -438,9 +438,9 @@ class Module(ModuleManager.BaseModule):
modified = self._modified(len(self._flat_unique(commits, modified = self._modified(len(self._flat_unique(commits,
"modified"))) "modified")))
outputs.append("[%s/%s/%s files] %s %spushed %d commits to %s - %s" outputs.append("%s %spushed %d commits to %s [%s/%s/%s files] - %s"
% (added, removed, modified, pusher, forced, % (pusher, forced, len(data["commits"]), branch,
len(data["commits"]), branch, url)) added, removed, modified, url))
return outputs return outputs