Generate PR Description
Create a comprehensive pull request description based on the changes in this branch relative to main, then update the PR on GitHub.
Usage
code
/pr-description <PR_URL_or_NUMBER>
Examples:
bash
/pr-description https://github.com/your-org/your-repo/pull/123 /pr-description 123
What It Does
- •
Analyzes Changes
- •Runs
git diff main HEADto understand modifications - •Reviews commit messages with
git log main..HEAD --oneline
- •Runs
- •
Generates Content
- •Title: Concise descriptive title (max 72 chars)
- •Summary: Clear summary of what the PR accomplishes
- •Changes Made: Key changes, highlights breaking changes
- •Testing: How changes were tested, new test cases
- •Related Issues: Links to related issues or tickets
- •
Updates GitHub
- •Uses
gh pr editto update the PR title and body - •Falls back to manual copy/paste if
ghCLI unavailable
- •Uses
Notes
- •Requires
ghCLI to be installed and authenticated - •Automatically detects PR number from URL
- •Highlights breaking changes prominently
- •Formats output as proper markdown