新增: compare files接口分页参数
This commit is contained in:
parent
507d2cfeca
commit
6bbb4726f2
|
@ -22,7 +22,7 @@ class Api::V1::Projects::CompareController < Api::V1::BaseController
|
|||
if params[:filepath].present?
|
||||
$gitea_hat_client.get_repos_compare_files_by_owner_repo_baseref_headref_filepath(@project&.owner&.login, @project.identifier, Addressable::URI.escape(base), Addressable::URI.escape(head), params[:filepath], {query: {token: current_user&.gitea_token}})
|
||||
else
|
||||
$gitea_hat_client.get_repos_compare_files_by_owner_repo_baseref_headref(@project&.owner&.login, @project.identifier, Addressable::URI.escape(base), Addressable::URI.escape(head), {query: {token: current_user&.gitea_token}})
|
||||
$gitea_hat_client.get_repos_compare_files_by_owner_repo_baseref_headref(@project&.owner&.login, @project.identifier, Addressable::URI.escape(base), Addressable::URI.escape(head), {query: {page:page,limit:limit,token: current_user&.gitea_token}})
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue