2013-07-19 18:08:00 +01:00
|
|
|
json.pull_request do
|
2013-07-17 13:35:36 +01: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-07-17 13:35:36 +01:00
|
|
|
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
|
2013-07-17 13:35:36 +01:00
|
|
|
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
|