reposyncer同步仓库接口

This commit is contained in:
“xxq250”
2022-07-26 10:44:12 +08:00
parent 0df1e5fdd0
commit 1bbde165c2
9 changed files with 377 additions and 1 deletions
+1 -1
View File
@@ -49,7 +49,7 @@ class Repository < ApplicationRecord
end
def url
self['url'].blank? ? "#{Rails.application.config_for(:configuration)['platform_url']}/#{self.owner&.login}/#{self.identifier}.git" : self['url']
self['url'].blank? ? "#{Gitea.gitea_config[:domain]}/#{self.owner&.login}/#{self.identifier}.git" : self['url']
end
# with repository is mirror