mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 03:40:49 +08:00
新增:分支列表分支信息以及gitlink admin token
This commit is contained in:
@@ -97,6 +97,8 @@ class Api::V1::Projects::SyncRepositories::CreateService < ApplicationService
|
||||
end
|
||||
|
||||
def gitlink_repo_address
|
||||
"#{EduSetting.get("gitlink_repo_domain")}/#{project.owner&.login}/#{project.identifier}.git"
|
||||
internal_repo_address = "#{EduSetting.get("gitlink_repo_domain")}/#{project.owner&.login}/#{project.identifier}.git"
|
||||
body = internal_repo_address.split("https://")[1]
|
||||
return "https://oauth2:#{EduSetting.get("gitlink_admin_token")}@#{body}"
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user