新增:分支列表分支查询以及排序等

This commit is contained in:
2024-04-18 16:14:39 +08:00
parent 6f458e0e79
commit 565c1c1cab
3 changed files with 4 additions and 2 deletions

View File

@@ -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