FIX coder review

This commit is contained in:
Jasder
2020-05-22 17:34:39 +08:00
parent c0a4a4855b
commit cc9e86f010
3 changed files with 13 additions and 8 deletions

View File

@@ -0,0 +1,8 @@
created_at = Time.at(entry['latest_commit']['created_at'].to_i).strftime("%Y-%m-%d %H:%M")
json.commit do
json.message entry['latest_commit']['message']
json.sha entry['latest_commit']['sha']
json.created_at created_at
json.time_from_now time_from_now(created_at)
json.created_at_unix entry['latest_commit']['created_at']
end