mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-20 11:45:57 +08:00
FIX ci active repo bug
This commit is contained in:
@@ -16,10 +16,11 @@ class Ci::Repo < Ci::RemoteBase
|
||||
[user, repo]
|
||||
end
|
||||
|
||||
def activate!
|
||||
def activate!(ci_user_id)
|
||||
update_columns(repo_active: 1,
|
||||
repo_signer: generate_code,
|
||||
repo_secret: generate_code,
|
||||
repo_user_id: ci_user_id,
|
||||
repo_config: '.trustie-pipeline.yml',
|
||||
repo_updated: Time.now.to_i)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user