This commit is contained in:
Jasder 2020-09-04 18:20:50 +08:00
parent 401efd7c9b
commit 5cc5404915
1 changed files with 2 additions and 2 deletions

View File

@ -156,10 +156,10 @@ class Ci::CloudAccountsController < Ci::BaseController
hook_params = {
active: true,
config: {
content_type: json,
content_type: "json",
url: cloud_account.drone_url + "/hook?secret=#{repo.repo_signer}"
},
type: gitea
type: "gitea"
}
Rails.logger.info "----------bind hook -------- #{hook_params}"
result = Gitea::Hooks::CreateService.call(user.gitea_token, user.login, repo.repo_name, hook_params)