You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Optionally include 'body' and 'footer', ONLY if a 'header'
@@ -594,7 +594,7 @@ load_vars_map() {
594
594
595
595
```yaml
596
596
commitMessages:
597
-
- header: "<type>[optional scope]: <description>"
597
+
- header: "<required header>"
598
598
body: "<optional body>"
599
599
footer: "<optional footer>"
600
600
score: <integer 0-100 representing confidence that this is the best commit message>
@@ -623,19 +623,47 @@ EOF
623
623
# src/lib/pick_from_headers.sh
624
624
pick_from_headers() {
625
625
local -n headers_ref=$1
626
+
local response="$2"
626
627
627
628
# Quit if no headers are provided
628
629
if [[ ${#headers_ref[@]}-eq 0 ]];then
629
630
echo"No headers available to pick from. Maybe the AI response is empty or incorrectly formatted? You can test this by running the command again with the -r flag.">&2
0 commit comments