Skip to content

Commit

Permalink
include the owner name for the full repo address
Browse files Browse the repository at this point in the history
  • Loading branch information
pjhyett committed Jan 27, 2010
1 parent 9e25089 commit 26a0e8e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion services/campfire.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@

service :campfire do |data, payload|
repository = payload['repository']['name']
owner = payload['repository']['owner']['name']
branch = payload['ref'].split('/').last
commits = payload['commits']
campfire = Tinder::Campfire.new(data['subdomain'], :ssl => data['ssl'].to_i == 1)
Expand All @@ -22,7 +23,7 @@

throw(:halt, 400) unless room

message = "[#{repository}/#{branch}]\n"
message = "[#{owner}/#{repository}/#{branch}]\n"
message += commits.map do |commit|
"#{commit['id'][0..5]} #{commit['message']} - #{commit['author']['name']}"
end.join("\n")
Expand Down

0 comments on commit 26a0e8e

Please sign in to comment.