Skip to content

Commit be930c1

Browse files
adinauerclaude
andcommitted
fix(create-java-pr): Map stack base detection to defined PR type
When downstream PRs are found for a branch, classify the result as an existing stack flow instead of an undefined "stack base context". Clarify that the next PR in an existing stack can target either the previous stack PR branch or the collection branch, so all detection outcomes map to actionable PR types. Co-Authored-By: Claude <noreply@anthropic.com>
1 parent f68f205 commit be930c1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.claude/skills/create-java-pr/SKILL.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,20 +34,20 @@ git branch --show-current
3434
```bash
3535
gh pr list --base "$(git branch --show-current)" --json number,headRefName,title
3636
```
37-
- If there are downstream PRs, treat this as a **stack base context** (collection branch).
37+
- If there are downstream PRs, treat this as **next PR in an existing stack** with the current branch as the stack base (collection branch).
3838
- If there are no downstream PRs, treat it as **standalone PR context**.
3939
- If no PR exists for the current branch, check whether other PRs target it:
4040
```bash
4141
gh pr list --base "$(git branch --show-current)" --json number,headRefName,title
4242
```
43-
If there are downstream PRs, treat this as a stack base context.
43+
If there are downstream PRs, treat this as **next PR in an existing stack** with the current branch as the stack base (collection branch).
4444

4545
3. If signals are mixed or ambiguous, ask one focused question to confirm.
4646

4747
PR types:
4848
- **Standalone PR** — regular PR targeting `main`.
4949
- **First PR of a new stack** — create collection branch from `main`, then first PR off it.
50-
- **Next PR in an existing stack** — target previous stack branch.
50+
- **Next PR in an existing stack** — target the current stack base branch (usually the previous stack PR branch, or the collection branch if creating the first follow-up PR from the collection branch).
5151

5252
If the user explicitly says "stack", "stacked PR", or provides numbered stack titles (e.g. `[Topic 2]`), honor that even if branch heuristics are inconclusive.
5353

0 commit comments

Comments
 (0)