Skip to content

Commit f83515c

Browse files
adinauerclaude
andcommitted
fix(skills): Add missing standalone PR fallback for fresh feature branches
The decision tree in create-java-pr Step 0 had a gap: when a non-main branch has no existing PR and no downstream PRs target it, no outcome was specified. This is the most common case (fresh feature branch). Add explicit fallback to standalone PR context, matching the behavior of the parallel branch where a PR exists with base main and no downstream PRs. Co-Authored-By: Claude <noreply@anthropic.com>
1 parent be930c1 commit f83515c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ git branch --show-current
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 **next PR in an existing stack** with the current branch as the stack base (collection branch).
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).
44+
- If there are no downstream PRs either, treat it as **standalone PR context** (fresh feature branch).
4445

4546
3. If signals are mixed or ambiguous, ask one focused question to confirm.
4647

0 commit comments

Comments
 (0)