GitHub Code PR
Clone a repository, make code changes, and create a pull request.
Usage
code
/github-code-pr <repo-url> <branch-name> <description>
Parameters
- •
repo-url: GitHub repository URL (https or git format) - •
branch-name: Name for the new feature branch - •
description: Brief description of the changes to make
Example
code
/github-code-pr https://github.com/user/repo.git fix-auth-bug "Fix authentication issue in login handler"
Process
- •Clone the repository using GITHUB_TOKEN
- •Create a new branch with the specified name
- •Make the requested code changes
- •Run tests if available
- •Commit changes with conventional commit format
- •Push branch to origin
- •Create pull request with:
- •Clear title describing the change
- •Body explaining what was changed and why
- •Reference to the original request
Requirements
- •GITHUB_TOKEN must be set in environment
- •gh CLI tool for GitHub operations
- •Repository must be accessible to the token
Notes
- •Always creates a new branch for changes
- •Never commits directly to main branch
- •Follows conventional commit message format
- •Includes test running when tests are present