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

26 lines
696 B
Plaintext
Raw Normal View History

json.commits @commits do |commit|
json.sha commit.id
json.https_url commit_path(@project, commit.id)
json.author do
json.name commit.author.name
json.email commit.author.email
json.date commit.authored_date.to_i
2013-06-21 14:45:28 +01:00
end
json.committer do
json.name commit.committer.name
json.email commit.committer.email
json.date commit.committed_date.to_i
2013-06-21 14:45:28 +01:00
end
json.message commit.message
json.tree do
json.sha commit.id
json.https_url commit_path(@project, commit.id)
2013-06-21 14:45:28 +01:00
end
json.parents commit.parents do |parent|
2013-06-21 14:45:28 +01:00
json.sha parent.id
json.https_url commit_path(@project, parent.id)
end
end
2014-01-21 04:51:49 +00:00
json.url commits_api_v1_project_pull_request_path(format: :json)