From 70702d8faba0fe475e4c9fa913d2b04a2be56f8f Mon Sep 17 00:00:00 2001 From: xxq250 Date: Thu, 23 Mar 2023 11:28:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8C=E6=AD=A5=E6=95=B0=E6=8D=AE=E5=88=B0es?= =?UTF-8?q?,=E6=B2=A1=E6=9C=89=E6=96=87=E4=BB=B6=E7=BB=A7=E7=BB=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/tasks/batch_projects_to_es.rake | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/tasks/batch_projects_to_es.rake b/lib/tasks/batch_projects_to_es.rake index 46692cc7..771e74e1 100644 --- a/lib/tasks/batch_projects_to_es.rake +++ b/lib/tasks/batch_projects_to_es.rake @@ -68,8 +68,10 @@ namespace :batch_projects_to_es do commit_files = Gitea::Repository::Commits::GetService.call(project.owner.login, project.identifier, commit_sha, project.owner.gitea_token, { diff: true }) - puts "commit_files========#{commit_files}" + # puts "commit_files========#{commit_files}" # puts "commit_files========#{commit_files['Files']}" + next if commit_files['Files'].blank? + puts "commit_files========#{commit_files['Files'].size}" mapping_files = [] commit_files['Files'].each do |file| file_tpl = {