<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -5,7 +5,7 @@ module Integrity
         :uri =&gt; buildable[&quot;uri&quot;],
         :branch =&gt; buildable[&quot;branch&quot;]
       )
-      buildable[&quot;commits&quot;].collect { |id| new(project, id) }
+      buildable[&quot;commits&quot;].collect { |c| new(project, c[&quot;id&quot;]) }
     end
 
     def initialize(project, commit)
@@ -36,7 +36,10 @@ module Integrity
       Integrity.log &quot;Started building %s at %s&quot; % [@build.project.uri,
         metadata[&quot;identifier&quot;]]
       @build.update(:started_at =&gt; Time.now)
-      @build.commit.update(metadata)
+      @build.commit.update(:identifier =&gt; metadata[&quot;id&quot;],
+        :message =&gt; metadata[&quot;message&quot;],
+        :author  =&gt; metadata[&quot;author&quot;],
+        :committed_at =&gt; metadata[&quot;timestamp&quot;])
     end
 
     def completed(status, output)</diff>
      <filename>lib/integrity/builder.rb</filename>
    </modified>
    <modified>
      <diff>@@ -17,10 +17,9 @@ class GitHubTest &lt; Test::Unit::AcceptanceTestCase
   end
 
   def payload(repo)
-    commits = repo.commits.collect { |c| c[&quot;identifier&quot;] }
     { &quot;after&quot;      =&gt; repo.head, &quot;ref&quot; =&gt; &quot;refs/heads/#{repo.branch}&quot;,
       &quot;repository&quot; =&gt; { &quot;url&quot; =&gt; repo.uri },
-      &quot;commits&quot;    =&gt; commits.reverse }.to_json
+      &quot;commits&quot;    =&gt; repo.commits }.to_json
   end
 
   def github_post(payload)</diff>
      <filename>test/acceptance/github_test.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>063baea2e36299b2f5914251585c126bf20c0070</id>
    </parent>
  </parents>
  <author>
    <name>Simon Rozet</name>
    <email>simon@rozet.name</email>
  </author>
  <url>http://github.com/integrity/integrity/commit/2e092c8b77971ef566610a4dba5282954244a3cc</url>
  <id>2e092c8b77971ef566610a4dba5282954244a3cc</id>
  <committed-date>2009-11-06T05:55:27-08:00</committed-date>
  <authored-date>2009-11-06T03:42:19-08:00</authored-date>
  <message>Update for latest Bob &amp; Bobette</message>
  <tree>75a8391c528e4113384fe5ef2b64c426dad8e7ba</tree>
  <committer>
    <name>Simon Rozet</name>
    <email>simon@rozet.name</email>
  </committer>
</commit>
