Files
gh-johnclyde-clydehub/commands/pr.md
2025-11-30 08:28:27 +08:00

23 lines
918 B
Markdown

---
description: Create a pull request with CI validation and lint checks
argument-hint: [title]
---
Create a pull request with the following workflow:
1. Check current branch and ensure it's not main/master
2. Run `git status` to see current state
3. Run all linters and automatically fix any issues
4. Run type checking
5. Stage any lint/type fixes
6. If there are uncommitted changes, commit them first
7. Push the current branch to remote (with -u flag if needed)
8. Create the PR using `gh pr create` with:
- Clear title (use argument if provided, or generate from commits)
- Summary of changes from all commits in the branch
- Test plan checklist
9. After PR is created, monitor PR checks status using `gh pr checks`
10. Return the PR URL and deployment information from GitHub
IMPORTANT: Do NOT add any Claude Code attribution or co-author tags. Do NOT run tests locally - rely on GitHub PR checks.