mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-07-13 21:44:32 +08:00
FIX 优化ci初始化流程
This commit is contained in:
@@ -16,13 +16,12 @@ class Ci::Repo < Ci::RemoteBase
|
||||
[user, repo]
|
||||
end
|
||||
|
||||
def config_trustie_pipeline
|
||||
update_column(:repo_config, '.trustie-pipeline.yml')
|
||||
end
|
||||
|
||||
def activate
|
||||
# repo_active、repo_signer、repo_secret、repo_updated
|
||||
update_columns(repo_active: 1, repo_signer: generate_code, repo_secret: generate_code, repo_updated: Time.now.to_i)
|
||||
def activate!
|
||||
update_columns(repo_active: 1,
|
||||
repo_signer: generate_code,
|
||||
repo_secret: generate_code,
|
||||
repo_config: '.trustie-pipeline.yml',
|
||||
repo_updated: Time.now.to_i)
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user