Skip to content

Simplify GitHub PR creation process using automation scripts and AI tools.

Notifications You must be signed in to change notification settings

mukiwu/pr-pilot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

8831a54 · Mar 25, 2025

History

11 Commits
Mar 25, 2025
Mar 25, 2025
Mar 25, 2025
Mar 25, 2025

Repository files navigation

PR Pilot

Simplify GitHub PR creation process using automation scripts and AI tools. Utilizing Gemini Code Assist along with create_pr.sh and gemini_finder.sh scripts to automatically generate PR descriptions and translate them into Chinese (or keep them in English), improving work efficiency and reducing manual operations.

中文文件

Detailed Documentation

Detailed Documentation

Features

  • Automatically checks current branch and related commits, handles uncommitted changes (reminds users of uncommitted files)
  • Integrates with OpenAI API to generate suggested PR titles based on commits
  • Automatically determines PR type (feature, fix, docs, etc.)
  • Automatically generates or assigns labels
  • Automatically fetches English summaries generated by Gemini Code Assist
  • Automatically updates PR Description

Prerequisites

  • Install Gemini Code Assist
  • Login to GitHub CLI (gh auth login)
  • OpenAI API Key (optional, for AI title suggestions)
  • Google API Key (optional, for Gemini translation)

Installation

  1. Clone this repository

    git clone https://github.com/mukiwu/pr-pilot.git
  2. Make scripts executable

    chmod +x create_pr.sh gemini_finder.sh
  3. Set up API Keys (optional)

    echo 'export OPENAI_API_KEY="your-openai-api-key"' >> ~/.zshrc
    echo 'export GEMINI_API_KEY="your-gemini-api-key"' >> ~/.zshrc

Usage

Create PR

./create_pr.sh

Update PR with Gemini Review Summary

./gemini_finder.sh [PR_NUMBER]

Options:

  • PR_NUMBER: The PR number to update

Contributing

Issues and improvements are welcome!

License

MIT License

About

Simplify GitHub PR creation process using automation scripts and AI tools.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages