add github token for mirror

This commit is contained in:
chenjing
2023-06-06 10:18:32 +08:00
parent 677f9c2f4e
commit e90c79486a
6 changed files with 28 additions and 11 deletions

View File

@@ -43,6 +43,7 @@ class Repository < ApplicationRecord
validates :identifier, presence: true
delegate :default_branch, to: :project, allow_nil: true
attr_accessor :auth_token
def to_param
self.identifier.parameterize