更改:传至reposyncer仓库名称中使用id区分
This commit is contained in:
parent
f0622b6261
commit
ff57561aad
|
@ -87,9 +87,9 @@ class Api::V1::Projects::SyncRepositories::CreateService < ApplicationService
|
||||||
|
|
||||||
def repo_name(sync_direction)
|
def repo_name(sync_direction)
|
||||||
if type == "SyncRepositories::Gitee"
|
if type == "SyncRepositories::Gitee"
|
||||||
return "gitee:#{project.owner&.login}:#{project.identifier}:#{sync_granularity}:#{sync_direction}"
|
return "gitee:#{project.id}:#{sync_granularity}:#{sync_direction}"
|
||||||
else
|
else
|
||||||
return "github:#{project.owner&.login}:#{project.identifier}:#{sync_granularity}:#{sync_direction}"
|
return "github:#{project.id}:#{sync_granularity}:#{sync_direction}"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue