|
|
|
@@ -3,10 +3,10 @@ if @commit.blank? #如果有状态值,则表示报错了 |
|
|
|
json.total_count 0 |
|
|
|
json.commits [] |
|
|
|
else |
|
|
|
json.files_count @commit_diff['NumFiles'] |
|
|
|
json.total_addition @commit_diff['TotalAddition'] |
|
|
|
json.total_deletion @commit_diff['TotalDeletion'] |
|
|
|
json.files @commit_diff['Files'], partial: 'pull_requests/diff_file', as: :file, locals: {sha: @sha} |
|
|
|
# json.files_count @commit_diff['NumFiles'] |
|
|
|
# json.total_addition @commit_diff['TotalAddition'] |
|
|
|
# json.total_deletion @commit_diff['TotalDeletion'] |
|
|
|
# json.files @commit_diff['Files'], partial: 'pull_requests/diff_file', as: :file, locals: {sha: @sha} |
|
|
|
|
|
|
|
json.partial! 'commit', commit: @commit, project: @project |
|
|
|
json.parents @commit['parents'] do |parent| |
|
|
|
|