pull request: fix showing the closed time
This commit is contained in:
parent
bc9ebf46df
commit
d2a30e2169
|
@ -33,8 +33,8 @@ json.pull_request do
|
||||||
json.merged_at_utc @pull.issue.closed_at.strftime('%Y-%m-%d %H:%M:%S UTC')
|
json.merged_at_utc @pull.issue.closed_at.strftime('%Y-%m-%d %H:%M:%S UTC')
|
||||||
end
|
end
|
||||||
|
|
||||||
if @pull.merged? || @pull.closed?
|
if @pull.closed?
|
||||||
json.closed_at @pull.issue.closed_at.to_i
|
json.closed_at @pull.issue.closed_at
|
||||||
json.closed_at_utc @pull.issue.closed_at.strftime('%Y-%m-%d %H:%M:%S UTC')
|
json.closed_at_utc @pull.issue.closed_at.strftime('%Y-%m-%d %H:%M:%S UTC')
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue