Guide for creating pull requests using GitHub CLI with proper templates and conventions
Creates GitHub pull requests using CLI with conventional commit format and templates.
/plugin marketplace add davepoon/buildwithclaude/plugin install commands-version-control-git@buildwithclaudeThis guide explains how to create pull requests using GitHub CLI in our project.
Install GitHub CLI if you haven't already:
# macOS
brew install gh
# Windows
winget install --id GitHub.cli
# Linux
# Follow instructions at https://github.com/cli/cli/blob/trunk/docs/install_linux.md
Authenticate with GitHub:
gh auth login
First, prepare your PR description following the template in @.github/pull_request_template.md
Use the gh pr create --draft command to create a new pull request:
# Basic command structure
gh pr create --draft --title "✨(scope): Your descriptive title" --body "Your PR description" --base main
For more complex PR descriptions with proper formatting, use the --body-file option with the exact PR template structure:
# Create PR with proper template structure
gh pr create --draft --title "✨(scope): Your descriptive title" --body-file .github/pull_request_template.md --base main
PR Title Format: Use conventional commit format with emojis
:sparkles:)✨(supabase): Add staging remote configuration🐛(auth): Fix login redirect issue📝(readme): Update installation instructionsDescription Template: Always use our PR template structure from @.github/pull_request_template.md:
Template Accuracy: Ensure your PR description precisely follows the template structure:
pr_agent:summary and pr_agent:walkthrough)/create-pull-requestGuide for creating pull requests using GitHub CLI with proper templates and conventions