mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-02 19:30:48 +08:00
新增:分支列表分支查询以及排序等
This commit is contained in:
@@ -4,6 +4,7 @@ json.sync_repository_branches @group_sync_repository_branch.each do |key|
|
||||
json.external_branch_name key[0][1]
|
||||
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.type branch&.sync_repository&.type
|
||||
json.sync_time branch.sync_time
|
||||
json.sync_status branch.sync_status
|
||||
json.enable branch.enable
|
||||
|
||||
Reference in New Issue
Block a user