Skip to content

Commit

Permalink
Tweaked for our our usage
Browse files Browse the repository at this point in the history
  • Loading branch information
Hapnin committed Aug 24, 2009
1 parent 198ac48 commit f6f89b8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tracker_github_hook.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,11 @@ def process_commit(tracker_info, commit)
message.scan(/\[Story(\d+)([^\]]*)\]/) do |tracker_trigger|
@num_commits += 1
story_id = tracker_trigger[0]
clean_message = message.gsub(/\[.*\]/,'')

# post comment to the story
RestClient.post(create_api_url(tracker_info[:project_id], story_id, '/notes'),
"<note><text>(from [#{commit['id']}]) #{message}</text></note>",
"<note><text>#{message} [https://github.com/kkouddous/hapnin/commit/#{commit['id']}]</text></note>",
tracker_api_headers(tracker_info[:api_token]))

# See if we have a state change
Expand Down

0 comments on commit f6f89b8

Please sign in to comment.