mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-02 19:30:48 +08:00
新增: Commit文件变更列表拆解
This commit is contained in:
8
app/views/api/v1/projects/commits/files.json.jbuilder
Normal file
8
app/views/api/v1/projects/commits/files.json.jbuilder
Normal file
@@ -0,0 +1,8 @@
|
||||
if params[:filepath].present?
|
||||
json.partial! "api/v1/projects/simple_gitea_diff_detail", diff: @result_object
|
||||
else
|
||||
json.file_numbers @result_object[:total_data].to_i
|
||||
json.files @result_object[:data] do |file|
|
||||
json.partial! "api/v1/projects/simple_gitea_file", file: file
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user