Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 26a0e8e

Browse files
committed
include the owner name for the full repo address
1 parent 9e25089 commit 26a0e8e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

services/campfire.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11

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

2324
throw(:halt, 400) unless room
2425

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

0 commit comments

Comments
 (0)