This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## AI Git Pull Request Script - Automate Pull Requests using Gemini AI | |
## For this public script (`public-pr-script.sh`), there are fewer requirements: GitHub CLI (hub), | |
## GitHub Token (PAT - set in .bash_profile or .zshrc), Gemini AI API Key (set in .bash_profile or .zshrc), | |
## GitHub reviewers (Code reviewer GitHub usernames) and GitHub assignee (your GitHub username) in .bash_profile or .zshrc | |
## (***`reviwers` and `assignee` are both optional**). | |
## Optional - Setting an alias for this script in .bash_profile or .zshrc (alias pr='~/public-pr-script.sh') | |
## Usage: pr [head branch] - Ex. 'pr develop', 'pr main', 'pr master', defaults to develop branch | |
## Note: This script will push local commits to the remote branch and create a pull request on GitHub | |
## Gemini AI will generate a PR summary for the pull request | |
## The PR summary will include the PR title, PR summary, code changes, and commit messages with hashes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Automating Staging, Committing and Pushing to GitHub with Gemini AI 👨🏻💻➡️ | |
## AI commits generated from git diff | |
## *** A free Gemini AI API key is required to run this shell script *** - https://www.getgemini.ai/ | |
## Configuration instructions: https://github.com/wesleyscholl/git-commit-push-script | |
#!/bin/bash | |
source ~/.bash_profile | |
# Stage all changes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Code coverage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Coverage Badges |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"schemaVersion":1,"label":"Test Coverage","message":"95%","color":"green","namedLogo":"jest"} |