Archived
Adds number of commits if multiple commits in one push
This commit is contained in:
1 parent
1e1ec6199c
commit
7af37d2572
1 file changed
+3
-1
@@ -98,8 +98,10 @@ class ping:
|
||||
who = self.format_who(data['commits'])
|
||||
compare_url = self.shorten_url(data['compare'])
|
||||
if len(data['commits']) > 1:
|
||||
return "[{0}] *Multiple new commits*: {1}".format(
|
||||
return "[{0}] *{1} made {2} new commits*: {3}".format(
|
||||
data['repository']['name'],
|
||||
who,
|
||||
len(data['commits']),
|
||||
compare_url).encode('utf8')
|
||||
return u"[{0}] {1} (by {2}): {3}".format(data['repository']['name'],
|
||||
commit_msg,
|
||||
|
||||
Reference in new issue
Block a user