Browse Source

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

pull/347/head
yystopf 2 years ago
parent
commit
ff57561aad
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      app/services/api/v1/projects/sync_repositories/create_service.rb

+ 2
- 2
app/services/api/v1/projects/sync_repositories/create_service.rb 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



Loading…
Cancel
Save