Skip to content

Commit

Permalink
TEST-1234 Commit message title: Improve commit message generation Com…
Browse files Browse the repository at this point in the history
…mit message summary: Add character limits and formatting instructions
  • Loading branch information
wesleyscholl committed Sep 23, 2024
1 parent de096ed commit df5670c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion git-commit-push-script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ diff=$(git diff --cached)
diff=$(echo $diff | sed 's/\\/\\\\/g' | sed 's/"/\\"/g' | sed 's/\n/\\n/g')

# Prepare the Gemini API request
gemini_request='{"contents":[{"parts":[{"text": "Write a git commit message (72 character maximum) for the following git diff: '"$diff"'"}]}]}'
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"' The format should be as follows (without titles, back ticks, or markdown fomatting): <commit message title> (2 new lines) <commit message summary>"}]}]}'

# Get commit message from Gemini API
commit_message=$(curl -s \
Expand Down

0 comments on commit df5670c

Please sign in to comment.