This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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"} |
This file contains hidden or 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
| ## I just ran into this after initializing a Visual Studio project _before_ adding a .gitignore file (like an idiot). | |
| ## I felt real dumb commiting a bunch of files I didn't need to, so the commands below should do the trick. The first two commands | |
| ## came from the second answer on this post: http://stackoverflow.com/questions/7527982/applying-gitignore-to-committed-files | |
| # See the unwanted files: | |
| git ls-files -ci --exclude-standard | |
| # Remove the unwanted files: | |
| git ls-files -ci --exclude-standard -z | xargs -0 git rm --cached |
This file contains hidden or 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
| { | |
| "AL": "Alabama", | |
| "AK": "Alaska", | |
| "AS": "American Samoa", | |
| "AZ": "Arizona", | |
| "AR": "Arkansas", | |
| "CA": "California", | |
| "CO": "Colorado", | |
| "CT": "Connecticut", | |
| "DE": "Delaware", |