新增: Commit文件变更列表拆解

This commit is contained in:
2024-11-07 16:46:17 +08:00
parent fe971495cd
commit e57910a9a8
2 changed files with 17 additions and 1 deletions

View 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