FIX pull api bug

(cherry picked from commit 36a3e36edb)
This commit is contained in:
Jasder
2021-01-15 18:38:53 +08:00
committed by moshenglv
parent 06a7cb7558
commit ffeb076086
3 changed files with 5 additions and 3 deletions

View File

@@ -187,12 +187,12 @@ class PullRequestsController < ApplicationController
def files
@files_result = Gitea::PullRequest::FilesService.call(@owner.login, @project.identifier, @pull_request.gpid)
@files_result = Gitea::PullRequest::FilesService.call(@owner.login, @project.identifier, @pull_request.gpid, current_user&.gitea_token)
# render json: @files_result
end
def commits
@commits_result = Gitea::PullRequest::CommitsService.call(@owner.login, @project.identifier, @pull_request.gpid)
@commits_result = Gitea::PullRequest::CommitsService.call(@owner.login, @project.identifier, @pull_request.gpid, current_user&.gitea_token)
# render json: @commits_result
end