|
|
|
@@ -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 |
|
|
|
|
|
|
|
|