From 7447e6a964b92f0fd253839bf0a46620eac2b975 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B2=99=E6=BC=A0=E4=B9=8B=E5=AD=90?= <7850715+maboloshi@users.noreply.github.com> Date: Mon, 18 Mar 2024 18:36:57 +0800 Subject: [PATCH] =?UTF-8?q?GA:=20=E5=88=A0=E9=99=A4=E7=AD=BE=E5=90=8D?= =?UTF-8?q?=E5=A4=9A=E4=BD=99=E7=9A=84=E6=8D=A2=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script/ci_commit_with_signature.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/ci_commit_with_signature.sh b/script/ci_commit_with_signature.sh index 97513fd0f..e8331d070 100644 --- a/script/ci_commit_with_signature.sh +++ b/script/ci_commit_with_signature.sh @@ -82,7 +82,7 @@ function set_dco_signature { echo "Signed-off-by: $CommitBot <$id+$CommitBot@users.noreply.github.com>" } -message_body="$message_body\n$(set_dco_signature)" +message_body="${message_body:+$message_body\n}$(set_dco_signature)" # 处理文件修改并构建 fileChanges 部分中 additions 的 JSON 字符串 # Process the file changes and build the JSON string of `additions` in the `fileChanges` section