Skip to content

Commit

Permalink
GA: 删除签名多余的换行
Browse files Browse the repository at this point in the history
  • Loading branch information
maboloshi committed Mar 18, 2024
1 parent 96da369 commit 7447e6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion script/ci_commit_with_signature.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7447e6a

Please sign in to comment.