fix: add comments_total_count

This commit is contained in:
yystopf 2021-10-09 14:19:02 +08:00
parent 6e653f768a
commit a22327d0df
2 changed files with 3 additions and 2 deletions

View File

@ -24,7 +24,7 @@ class Gitea::PullRequest::FilesService < Gitea::ClientService
def params
Hash.new.merge(token: token)
end
def url
"/repos/#{owner}/#{repo}/pulls/#{pull_number}/files".freeze
end

View File

@ -5,7 +5,8 @@ json.project_identifier @project.identifier
json.pr_time time_from_now(@pull_request.updated_at)
json.commits_count @pull_request.commits_count
json.files_count @pull_request.files_count
json.comments_count @issue.get_journals_size
json.comments_count @issue.journals.parent_journals.size
json.comments_total_count @issue.get_journals_size
json.pull_request do
json.extract! @pull_request, :id,:base, :head, :status,:fork_project_id, :is_original