From 0367c96037fec09f5ecd000e62061bbcd18d16ea Mon Sep 17 00:00:00 2001 From: Yuya Nishihara Date: Fri, 22 Aug 2025 09:37:46 +0900 Subject: [PATCH] templates: simplify blank line insertion in default draft commit description Since there exists at least one "JJ:" line, we no longer need to insert blank line conditionally. --- cli/src/config/templates.toml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cli/src/config/templates.toml b/cli/src/config/templates.toml index 270bd224c..41dd692f7 100644 --- a/cli/src/config/templates.toml +++ b/cli/src/config/templates.toml @@ -118,9 +118,10 @@ label(if(overridden, "overridden"), builtin_draft_commit_description = ''' concat( coalesce(description, default_commit_description, "\n"), - "\nJJ: Change ID: " ++ format_short_change_id(change_id) ++ "", + "\n", + "JJ: Change ID: " ++ format_short_change_id(change_id) ++ "\n", surround( - "\nJJ: This commit contains the following changes:\n", "", + "JJ: This commit contains the following changes:\n", "", indent("JJ: ", diff.summary()), ), )