新增:绑定仓库和webhook触发地址

This commit is contained in:
2024-04-16 17:15:22 +08:00
parent 04e70b3b34
commit e358e3b6f6
11 changed files with 268 additions and 1 deletions

View File

@@ -0,0 +1,14 @@
class CreateSyncRepositories < ActiveRecord::Migration[5.2]
def change
create_table :sync_repositories do |t|
t.references :project
t.string :type
t.string :repo_name
t.string :external_repo_address
t.integer :sync_granularity
t.integer :sync_direction, comment: "1表示从gitlink到外部2表示从外部到gitlink"
t.timestamps
end
end
end

View File

@@ -0,0 +1,14 @@
class CreateSyncRepositoryBranches < ActiveRecord::Migration[5.2]
def change
create_table :sync_repository_branches do |t|
t.references :sync_repository
t.string :gitlink_branch_name, comment: 'gitlink分支'
t.string :external_branch_name, comment: '外部仓库分支'
t.datetime :sync_time
t.integer :sync_status, default: 0
t.integer :reposync_branch_id
t.timestamps
end
end
end