更改:传至reposyncer仓库名称中使用id区分

This commit is contained in:
yystopf 2024-05-07 15:45:05 +08:00
parent f0622b6261
commit ff57561aad
1 changed files with 2 additions and 2 deletions

View File

@ -87,9 +87,9 @@ class Api::V1::Projects::SyncRepositories::CreateService < ApplicationService
def repo_name(sync_direction)
if type == "SyncRepositories::Gitee"
return "gitee:#{project.owner&.login}:#{project.identifier}:#{sync_granularity}:#{sync_direction}"
return "gitee:#{project.id}:#{sync_granularity}:#{sync_direction}"
else
return "github:#{project.owner&.login}:#{project.identifier}:#{sync_granularity}:#{sync_direction}"
return "github:#{project.id}:#{sync_granularity}:#{sync_direction}"
end
end