2013-07-17 13:35:36 +01:00
|
|
|
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
|
2013-07-17 13:35:36 +01:00
|
|
|
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
|
2013-07-17 13:35:36 +01:00
|
|
|
json.tree do
|
|
|
|
json.sha commit.id
|
|
|
|
json.https_url commit_path(@project, commit.id)
|
2013-06-21 14:45:28 +01:00
|
|
|
end
|
2013-07-17 13:35:36 +01:00
|
|
|
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)
|