mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 11:50:49 +08:00
* api/v1/repos/{owner}/{repo}/pulls/{number}/commits
* api/v1/repos/{owner}/{repo}/pulls/{number}/files
* api/v1/repos/{owner}/{repo}/compare/{base}...{head}
5 lines
212 B
Ruby
5 lines
212 B
Ruby
json.files_count @files_result['NumFiles']
|
|
json.total_addition @files_result['TotalAddition']
|
|
json.total_deletion @files_result['TotalDeletion']
|
|
json.files @files_result['Files'], partial: 'diff_file', as: :file
|