rosa-build/app/views/api/v1/pull_requests/show.json.jbuilder

18 lines
467 B
Plaintext
Raw Normal View History

2013-07-19 18:08:00 +01:00
json.pull_request do
2014-01-21 04:51:49 +00:00
json.partial! 'pull', pull: @pull
2013-06-18 20:45:40 +01:00
json.body @pull.body
2013-07-12 15:21:46 +01:00
json.closed_at @pull.issue.closed_at.to_i if @pull.merged? || @pull.closed?
2013-08-22 15:02:10 +01:00
if @pull.issue.closer
json.closed_by do
json.(@pull.issue.closer, :id, :name, :uname)
end
json.merged_by do
json.(@pull.issue.closer, :id, :name, :uname)
end if @pull.merged?
end
2013-06-18 20:45:40 +01:00
json.created_at @pull.issue.created_at.to_i
json.updated_at @pull.issue.updated_at.to_i
end