Archived
Strip whitespace from commit msg
This commit is contained in:
1 parent
25baa4aeee
commit
1fbd566e19
1 file changed
+2
-2
@@ -95,11 +95,11 @@ class ping:
|
||||
|
||||
def format_for_irc(self, data):
|
||||
# String to be sent to irc.
|
||||
commit_msg = data['commits'][0]['message']
|
||||
commit_msg = data['commits'][0]['message'].strip()
|
||||
who = self.format_who(data['commits'])
|
||||
compare_url = self.shorten_url(data['compare'])
|
||||
return "[{0}] {1} (by {2}): {3}".format(data['repository']['name'],
|
||||
commit_msg,
|
||||
commit_msg.trim(),
|
||||
who,
|
||||
compare_url)
|
||||
|
||||
|
||||
Reference in new issue
Block a user