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

View File

@@ -0,0 +1,15 @@
class CreateObRepositorySyncs < ActiveRecord::Migration[5.2]
def change
create_table :ob_repository_syncs do |t|
t.references :project
t.references :user
t.string :name
t.string :github_address
t.string :gitee_address
t.string :github_token
t.string :gitee_token
t.integer :sync_id
t.timestamps
end
end
end

View File

@@ -0,0 +1,14 @@
class CreateObRepositorySyncJobs < ActiveRecord::Migration[5.2]
def change
create_table :ob_repository_sync_jobs do |t|
t.references :ob_repository_sync
t.string :github_branch
t.string :gitee_branch
t.string :gitlink_branch
t.string :job_type
t.string :base
t.integer :job_id
t.timestamps
end
end
end