From 4c5c4e78281555342c2aa48998bb47aa8e9e1aa3 Mon Sep 17 00:00:00 2001 From: Saimon Moore Date: Thu, 19 Jan 2012 13:58:42 +0100 Subject: [PATCH] Override the format_commit_message helper to include the commit url --- services/talker.rb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/services/talker.rb b/services/talker.rb index af46ff3e5..95c5d5709 100644 --- a/services/talker.rb +++ b/services/talker.rb @@ -21,4 +21,11 @@ def receive_push end end end + + #Include the commit url in the message + def format_commit_message(commit) + short = commit['message'].split("\n", 2).first + "[#{repo_name}/#{branch_name}] #{short} - #{commit['author']['name']} #{commit['url']}" + end + end