forked from Gitlink/forgeplus
添加chain_params的log日志
This commit is contained in:
parent
0ac94f0532
commit
1c73e982ba
|
@ -2,11 +2,13 @@ class ProjectCreateChainJob < ApplicationJob
|
||||||
queue_as :default
|
queue_as :default
|
||||||
|
|
||||||
def perform(chain_params)
|
def perform(chain_params)
|
||||||
|
Rails.logger.info("########_response_chain_params_22222_#{chain_params}__")
|
||||||
status = 0
|
status = 0
|
||||||
chain_type = chain_params[:type].to_s
|
chain_type = chain_params[:type].to_s
|
||||||
reponame = chain_params[:reponame]
|
reponame = chain_params[:reponame]
|
||||||
Rails.logger.info("########_response_chain_type__#{chain_type}__")
|
|
||||||
|
Rails.logger.info("########_response_chain_chain_type_#{chain_type}__")
|
||||||
|
Rails.logger.info("########_response_reponame_#{reponame}__")
|
||||||
|
|
||||||
5.times do |i|
|
5.times do |i|
|
||||||
if status == 200
|
if status == 200
|
||||||
|
|
|
@ -31,6 +31,8 @@ class Repositories::CreateService < ApplicationService
|
||||||
ownername: user.try(:login),
|
ownername: user.try(:login),
|
||||||
reponame: @repository.try(:id)
|
reponame: @repository.try(:id)
|
||||||
}
|
}
|
||||||
|
Rails.logger.info("########_response_chain_params_111111_#{chain_params}__")
|
||||||
|
|
||||||
ProjectCreateChainJob.perform_later(chain_params) #创建上链操作
|
ProjectCreateChainJob.perform_later(chain_params) #创建上链操作
|
||||||
#暂时gitea的hook功能未完善
|
#暂时gitea的hook功能未完善
|
||||||
#Gitea::Repository::Hooks::CreateService.new(user, @repository.try(:identifier), hook_params).call #创建gitea的hook功能
|
#Gitea::Repository::Hooks::CreateService.new(user, @repository.try(:identifier), hook_params).call #创建gitea的hook功能
|
||||||
|
|
Loading…
Reference in New Issue