<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -2,11 +2,14 @@ neybor:
   github_url: 'http://github.com/apinstein/neybor'
   tracker_api_token: a00fbc0b53e13a8ad1c8f01b19b0537b
   tracker_project_id: 13545
+  ref: refs/heads/master
 tourbuzz:
   github_url: 'http://github.com/apinstein/tourbuzz'
   tracker_api_token: a00fbc0b53e13a8ad1c8f01b19b0537b
   tracker_project_id: 15381
+  ref: refs/heads/master
 tourbuzzplayer:
   github_url: 'http://github.com/lorennorman/tourbuzz-panoviewer'
   tracker_api_token: a00fbc0b53e13a8ad1c8f01b19b0537b
   tracker_project_id: 15381
+  ref: refs/heads/master</diff>
      <filename>config.yml</filename>
    </modified>
    <modified>
      <diff>@@ -27,7 +27,7 @@ payload={
         &quot;email&quot;: &quot;chris@cobaltedge.com&quot;,
         &quot;name&quot;: &quot;Chris Bailey&quot; 
       },
-      &quot;message&quot;: &quot;This one is a comment only 10 [Story294825]&quot;,
+      &quot;message&quot;: &quot;This one is a comment only 10 [Story294825] and [Story1234] 2nd line commit&quot;,
       &quot;timestamp&quot;: &quot;2008-02-15T14:57:17-08:00&quot;,
       &quot;added&quot;: [&quot;filepath.rb&quot;]
     },</diff>
      <filename>test.rb</filename>
    </modified>
    <modified>
      <diff>@@ -59,10 +59,9 @@ helpers do
     message = commit['message']
 
     # see if there is a Tracker story trigger, and if so, get story ID
-    tracker_trigger = message.match(/\[Story(\d+)(.*)\]/)
-    if tracker_trigger
+    message.scan(/\[Story(\d+)([^\]]*)\]/) do |tracker_trigger|
       @num_commits += 1
-      story_id = tracker_trigger[1]
+      story_id = tracker_trigger[0]
 
       # post comment to the story
       RestClient.post(create_api_url(tracker_info[:project_id], story_id, '/notes'),
@@ -70,7 +69,7 @@ helpers do
                       tracker_api_headers(tracker_info[:api_token]))
     
       # See if we have a state change
-      state = tracker_trigger[2].match(/.*state:(\s?\w+).*/)
+      state = tracker_trigger[1].match(/.*state:(\s?\w+).*/)
       if state
         state = state[1].strip
 </diff>
      <filename>tracker_github_hook.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>44ff6f7533c9ffb18775b95cea4be5b59f99f40b</id>
    </parent>
  </parents>
  <author>
    <name>Alan Pinstein</name>
    <email>apinstein@mac.com</email>
  </author>
  <url>http://github.com/chris/tracker_github_hook/commit/e5935f327923d3836cca0a7ec81a5285408e8580</url>
  <id>e5935f327923d3836cca0a7ec81a5285408e8580</id>
  <committed-date>2009-06-15T08:08:51-07:00</committed-date>
  <authored-date>2009-06-15T08:08:51-07:00</authored-date>
  <message>Add support for processing multiple [StoryXXX] blocks in same commit message</message>
  <tree>30907e308fb700517287f67afffcb98569862eca</tree>
  <committer>
    <name>Alan Pinstein</name>
    <email>apinstein@mac.com</email>
  </committer>
</commit>
