Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e25089 commit 26a0e8eCopy full SHA for 26a0e8e
services/campfire.rb
@@ -1,6 +1,7 @@
1
2
service :campfire do |data, payload|
3
repository = payload['repository']['name']
4
+ owner = payload['repository']['owner']['name']
5
branch = payload['ref'].split('/').last
6
commits = payload['commits']
7
campfire = Tinder::Campfire.new(data['subdomain'], :ssl => data['ssl'].to_i == 1)
@@ -22,7 +23,7 @@
22
23
24
throw(:halt, 400) unless room
25
- message = "[#{repository}/#{branch}]\n"
26
+ message = "[#{owner}/#{repository}/#{branch}]\n"
27
message += commits.map do |commit|
28
"#{commit['id'][0..5]} #{commit['message']} - #{commit['author']['name']}"
29
end.join("\n")
0 commit comments