json.commits_count @result_object['CommitsCount']
json.last_commit_sha @result_object['LatestSha']
json.commits @result_object['Commits'] do |commit|
  json.author do 
    json.partial! 'api/v1/users/commit_user', locals: { user: render_cache_commit_author(commit['Author']), name: commit['Author']['Name'] }
  end
  
  json.committer do 
    json.partial! 'api/v1/users/commit_user', locals: { user: render_cache_commit_author(commit['Committer']), name: commit['Committer']['Name'] }
  end
  json.branch commit['Branch']
  json.commit_message commit['CommitMessage']
  json.sha commit['Sha']
  json.parent_shas commit['Sha']['ParentShas']
end
json.diff do 
  if @result_object['Diff'].present? 
    json.partial! "api/v1/projects/simple_gitea_diff_detail", diff: @result_object['Diff']
  else 
    json.nil! 
  end
end