same as #274
This commit is contained in:
parent
54cadb0526
commit
5099f3e748
|
@ -2,12 +2,16 @@ json.pull_request do
|
|||
json.partial! 'pull', :pull => @pull
|
||||
json.body @pull.body
|
||||
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
|
||||
end if @pull.issue.closer
|
||||
json.merged_by do
|
||||
json.partial! 'api/v1/shared/member', :member => @pull.issue.closer
|
||||
end if @pull.merged?
|
||||
|
||||
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
|
||||
|
||||
json.created_at @pull.issue.created_at.to_i
|
||||
json.updated_at @pull.issue.updated_at.to_i
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue