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

14 lines
492 B
Plaintext
Raw Normal View History

2013-07-19 18:08:00 +01:00
json.pull_request do
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?
json.closed_by do
json.partial! 'api/v1/shared/member', :member => @pull.issue.closer
2013-06-18 20:45:40 +01:00
end if @pull.issue.closer
json.merged_by do
json.partial! 'api/v1/shared/member', :member => @pull.issue.closer
2013-06-18 20:45:40 +01:00
end if @pull.merged?
json.created_at @pull.issue.created_at.to_i
json.updated_at @pull.issue.updated_at.to_i
end