测试gitea的git——params
This commit is contained in:
parent
482888bcb9
commit
dc5bf457f6
|
@ -39,8 +39,6 @@ class RepositoriesController < ApplicationController
|
|||
|
||||
def commits
|
||||
@hash_commit = Gitea::Repository::Commits::ListService.new(@project.owner, @project.identifier, sha: params[:sha], page: params[:page]).call
|
||||
Rails.logger.info("######__________________#####{@hash_commit}")
|
||||
@hash_commit
|
||||
end
|
||||
|
||||
def single_commit
|
||||
|
|
|
@ -28,6 +28,7 @@ class Gitea::ClientService < ApplicationService
|
|||
end
|
||||
|
||||
def get(url, params={})
|
||||
Rails.logger.info("##########__________get_params__________########{params}")
|
||||
auth_token = authen_params(params[:token])
|
||||
conn(auth_token).get do |req|
|
||||
req.url full_url(url)
|
||||
|
|
Loading…
Reference in New Issue