From 7b1f50dc76142d775ca744a837e9942321de11d6 Mon Sep 17 00:00:00 2001 From: xxq250 Date: Wed, 5 Nov 2025 10:36:27 +0800 Subject: [PATCH] =?UTF-8?q?fixed=20=E4=BB=A3=E7=A0=81=E5=90=8C=E6=AD=A5?= =?UTF-8?q?=E6=96=B9=E5=90=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api/v1/projects/sync_repositories/history.json.jbuilder | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/api/v1/projects/sync_repositories/history.json.jbuilder b/app/views/api/v1/projects/sync_repositories/history.json.jbuilder index 01546b292..2eb6aaceb 100644 --- a/app/views/api/v1/projects/sync_repositories/history.json.jbuilder +++ b/app/views/api/v1/projects/sync_repositories/history.json.jbuilder @@ -3,8 +3,8 @@ json.gitlink_branch_name @branch&.gitlink_branch_name json.external_type @branch&.sync_repository&.type json.external_branch_name @branch&.external_branch_name json.logs @reposync_branch_logs.each do |log| - type = log['repo_name'].start_with?('gitee') ? 'gitee' : 'github' - json.change_from log['sync_direct'] == "to_inter" ? type : 'gitlink' + type = log['repo_name'].start_with?('gitee') ? 'gitee' : log['repo_name'].start_with?('github') ? 'github' : 'gitlink' + json.change_from log['sync_direct'] == "to_inter" ? type : 'osredm' json.commit_id log['commit_id'] json.sync_time log['update_at'] json.log log['log']