mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 03:40:49 +08:00
新增:解绑和更改状态接口
This commit is contained in:
@@ -2,8 +2,8 @@ json.total_count @group_sync_repository_branch.keys.count
|
||||
json.sync_repository_branches @group_sync_repository_branch.each do |key|
|
||||
json.gitlink_branch_name key[0][0]
|
||||
json.external_branch_name key[0][1]
|
||||
branches = @sync_repository_branches.where(gitlink_branch_name: key[0][0], external_branch_name: key[0][1])
|
||||
branch = branches.last
|
||||
branches = @sync_repository_branches.where(gitlink_branch_name: key[0][0], external_branch_name: key[0][1]).order(updated_at: :desc)
|
||||
branch = branches.first
|
||||
json.sync_time branch.sync_time
|
||||
json.sync_status branch.sync_status
|
||||
json.enable branch.enable
|
||||
|
||||
Reference in New Issue
Block a user