forgeplus/app/views/api/v1/projects/code_stats/index.json.jbuilder

14 lines
657 B
Plaintext
Raw Normal View History

2023-02-02 18:30:07 +08:00
json.author_count @result_object["author_count"]
json.commit_count @result_object["commit_count"]
json.change_files @result_object["change_files"]
json.additions @result_object["additions"]
json.deletions @result_object["deletions"]
json.commit_count_in_all_branches @result_object["commit_count_in_all_branches"]
json.authors @result_object["authors"].each do |author|
json.author do
2023-01-06 11:16:50 +08:00
json.partial! 'api/v1/users/commit_user_email', locals: { user: render_cache_commit_author(author), name: author['name'], email: author['email'] }
end
json.commits author["commits"]
json.additions author["additions"]
json.deletions author["deletions"]
end