Skip to content

Commit

Permalink
Merged to main
Browse files Browse the repository at this point in the history
  • Loading branch information
wesleyscholl authored Sep 23, 2024
2 parents a3d11ba + f94df31 commit 87080f5
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 (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."}]}]}'
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): <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 87080f5

Please sign in to comment.