j2nullify / ai-git-commit

AI Git Commit
MIT License
0 stars 0 forks source link

refactor(git): Enhance PR creation and commit handling #2

Closed j2nullify closed 1 month ago

j2nullify commented 1 month ago

Enhance Git Commit and Pull Request Workflow

This PR introduces several improvements to our Git commit and pull request creation process:

  1. Commit Message Handling:

    • Added fallback to use the default commit message if the user input is empty.
    • Improved error handling for failed commits.
  2. Pull Request Creation:

    • Implemented automatic upstream branch setting during push.
    • Added functionality to generate PR diff for better context.
    • Integrated Bedrock API for generating PR titles and descriptions based on the diff.
    • Improved error handling and feedback for PR creation process.
  3. Bedrock API Integration:

    • Updated query_bedrock function to print streaming responses in real-time.

These changes aim to streamline our Git workflow, provide more informative commit messages and PR descriptions, and improve the overall developer experience.

j2nullify-nullify[bot] commented 1 month ago

Nullify Code Vulnerabilities

5 findings found in this pull request

🔴 CRITICAL 🟡 HIGH 🔵 MEDIUM ⚪ LOW
0 0 5 0

You can find a list of all findings here