🔨 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:
parent
9be33b8eac
commit
9e86149abd
1 changed files with 0 additions and 10 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue