Skip to content

Commit 7030849

Browse files
committed
TEST-1234 ## Commit message title:
Improve commit message generation in script ## Commit message summary: Clarify Gemini API request for better results
1 parent 45712a2 commit 7030849

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git-commit-push-script.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ diff=$(git diff --cached)
1717
diff=$(echo $diff | sed 's/\\/\\\\/g' | sed 's/"/\\"/g' | sed 's/\n/\\n/g')
1818

1919
# Prepare the Gemini API request
20-
gemini_request='{"contents":[{"parts":[{"text": "Write a git commit message (title - 72 character maximum and summary - 50 character maxiumum) for the following git diff: '"$diff"' "}]}]}'
20+
gemini_request='{"contents":[{"parts":[{"text": "Write a git commit message (commit message title 72 character maximum and commit message summary 50 character maxiumum) for the following git diff: '"$diff"' Dont include feat., fix, bug, title, summary, or description in the commit message. Only include the commit message. Do not include the ticket number in the commit message."}]}]}'
2121

2222
# Get commit message from Gemini API
2323
commit_message=$(curl -s \

0 commit comments

Comments
 (0)