Skip to content

Instantly share code, notes, and snippets.

View wesleyscholl's full-sized avatar

Wesley Scholl wesleyscholl

  • Total Wine & More
  • Washington, DC
  • 16:10 (UTC -05:00)
  • LinkedIn in/wesleyscholl
View GitHub Profile
@wesleyscholl
wesleyscholl / public-pr-script.sh
Last active October 11, 2024 17:12
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 10, 2024 19:26
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
# Code coverage
Coverage Badges
{"schemaVersion":1,"label":"Test Coverage","message":"95%","color":"green","namedLogo":"jest"}