🔨 ci(git): Remove description from msg hook

It's much easier to just write the description in the editor, rather
than trying to figure out how to wrap text at 72 chars in the shell
script.
This commit is contained in:
punkfairie 2024-03-10 15:48:49 -07:00
parent 9be33b8eac
commit 9e86149abd
Signed by: punkfairie
GPG key ID: A86AF57F837E320F

View file

@ -81,10 +81,6 @@ set summary $(gum input --value "$summary" --placeholder "Summary of this change
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
set -l description $(gum write --placeholder "Details of this change (Ctrl-D to finish)")
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
set -l footer ""
breaking && set footer $(gum input --value "BREAKING CHANGE: " --placeholder "The breaking change being introduced")
@ -101,16 +97,10 @@ breaking && set footer $(gum input --value "BREAKING CHANGE: " --placeholder "Th
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# gum confirm "Commit changes?" && git commit -m "$emoji $summary" -m "$description" -m "$footer"
set -l msg "$(cat $msg_file)"
set -l new_msg "$emoji $summary\n\n"
if test ! -z "$description"
set new_msg "$new_msg$description\n\n"
end
if test ! -z "$footer"
set new_msg "$new_msg$footer\n\n"
end