Skip to content

Instantly share code, notes, and snippets.

View wesleyscholl's full-sized avatar

Wesley Scholl wesleyscholl

View GitHub Profile
@wesleyscholl
wesleyscholl / public-pr-script.sh
Last active October 28, 2025 12:32
AI Git Pull Request Script - Automate Pull Requests using Gemini AI
## 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
@wesleyscholl
wesleyscholl / ai-git-commit-push-script.sh
Last active October 28, 2025 12:32
AI Git Commit Push Script - Automate Commits using Gemini AI
## 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
Coverage Badges
{"schemaVersion":1,"label":"Test Coverage","message":"95%","color":"green","namedLogo":"jest"}
@jeffjohnson9046
jeffjohnson9046 / git-ignore.sh
Created August 11, 2015 21:02
Remove unwanted files from a git repo AFTER adding a .gitignore. The files will remain on disk.
## 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
@mshafrir
mshafrir / states_hash.json
Created May 9, 2012 17:05
US states in JSON form
{
"AL": "Alabama",
"AK": "Alaska",
"AS": "American Samoa",
"AZ": "Arizona",
"AR": "Arkansas",
"CA": "California",
"CO": "Colorado",
"CT": "Connecticut",
"DE": "Delaware",