Skip to content

Commit

Permalink
Update prepare-commit-msg.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagolofi authored Sep 11, 2024
1 parent f266e33 commit 34cc363
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion prepare-commit-msg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ API_RESPONSE=$(
-d "$GIT_DIFF"
)

COMMIT=$(echo $API_RESPONSE | grep -o '"respostaGPT4oMini": *"[^"]*"' | awk -F'"' '{print $4}')
COMMIT=$(echo $API_RESPONSE | grep -oP '(?<="respostaGPT4oMini":")[^"]*')

echo "$COMMIT" > temp_msg
cat "$COMMIT_MSG_FILE" >> temp_msg # dê um " " na mensagem de commit
Expand Down

0 comments on commit 34cc363

Please sign in to comment.