Permalink
Browse files

Add more to the json output, so we can keep general-hawk up to date.

  • Loading branch information...
1 parent 210c81f commit 44687009b411b534bbeeb17b393ad8e180c012f0 @queso queso committed Feb 11, 2011
Showing with 9 additions and 1 deletion.
  1. +9 −1 lib/cijoe/views/json.erb
@@ -2,7 +2,15 @@
<% if joe.last_build %>
{"name":"<%= joe.project %>",
"url":"<%= joe.url %>",
- "color":"<%= joe.last_build.status.to_s == "failed" ? 'red' : 'blue' %>"
+ "color":"<%= joe.last_build.status.to_s == "failed" ? 'red' : 'blue' %>",
+ "status":"<%= joe.last_build.status %>",
+ "started_at":"<%= pretty_time(joe.last_build.started_at) %>",
+ "finished_at":"<%= pretty_time(joe.last_build.finished_at) %>",
+ "duration":"<%= joe.last_build.duration if joe.last_build.duration %>",
+ "sha":"<%= joe.last_build.sha %>",
+ "short_sha":"<%= joe.last_build.short_sha %>",
+ "commit_url":"<%= joe.last_build.commit.url if joe.last_build.commit %>",
+ "branch":"<%= joe.last_build.branch %>"
}
<% end %>
]}

0 comments on commit 4468700

Please sign in to comment.