Initial commit
This commit is contained in:
52
commands/cc/pr.md
Normal file
52
commands/cc/pr.md
Normal file
@@ -0,0 +1,52 @@
|
||||
---
|
||||
description: Create pull request with auto-generated description from plan and memory
|
||||
---
|
||||
|
||||
Use the pr-creation skill to create a pull request with auto-generated description.
|
||||
|
||||
**Prerequisites:**
|
||||
- On feature branch (NOT main/master)
|
||||
- Execution completed
|
||||
- Changes committed to branch
|
||||
- `gh` CLI installed and authenticated
|
||||
|
||||
**What this does:**
|
||||
|
||||
**Pre-flight Checks:**
|
||||
1. Verify on feature branch (error if main/master)
|
||||
2. Check for uncommitted changes (offer to commit)
|
||||
3. Verify remote tracking (set up if needed)
|
||||
4. Check GitHub CLI installed and authenticated
|
||||
|
||||
**Generate PR Description from:**
|
||||
- Plan file: `docs/plans/YYYY-MM-DD-<feature>.md`
|
||||
- Complete memory: `YYYY-MM-DD-<feature>-complete.md` (if exists)
|
||||
- Git diff: Files changed summary
|
||||
- Commit messages: Timeline context
|
||||
|
||||
**Description Structure:**
|
||||
- Summary (from plan overview)
|
||||
- What Changed (git diff stat)
|
||||
- Approach (from plan architecture)
|
||||
- Testing (from plan + verification results)
|
||||
- Key Learnings (from complete.md)
|
||||
- References (plan, tasks, research)
|
||||
|
||||
**Execute:**
|
||||
1. Push branch to remote
|
||||
2. Create PR using `gh pr create`
|
||||
3. Output PR URL
|
||||
4. Update complete.md with PR link
|
||||
|
||||
**Title Format:** `feat: ${Feature Name}`
|
||||
|
||||
**Example:**
|
||||
```
|
||||
✅ Pull request created successfully!
|
||||
|
||||
PR: https://github.com/user/repo/pull/42
|
||||
Branch: feature/user-authentication
|
||||
Base: main
|
||||
|
||||
View PR: https://github.com/user/repo/pull/42
|
||||
```
|
||||
Reference in New Issue
Block a user