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
TEST-1234 Fix: Adjust commit message request for Gemini API This commit updates the Gemini API request to include a more accurate description of the desired commit message format. The new request specifies a 72-character maximum for the commit message title.
Copy file name to clipboardExpand all lines: git-commit-push-script.sh
+1-1
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ diff=$(git diff --cached)
17
17
diff=$(echo $diff| sed 's/\\/\\\\/g'| sed 's/"/\\"/g'| sed 's/\n/\\n/g')
18
18
19
19
# Prepare the Gemini API request
20
-
gemini_request='{"contents":[{"parts":[{"text": "Write a git commit message for the following git diff: '"$diff"' The format should be as follows: <commit message title - 72 character max>"}]}]}'
20
+
gemini_request='{"contents":[{"parts":[{"text": "Write a git commit message (72 character maximum) for the following git diff: '"$diff"'"}]}]}'
0 commit comments