Commit ca6b6d8
fix(skill): Detect stacked PR context from branch (#5223)
* fix(skill): Detect stacked PR context from branch
Update the create-java-pr skill to infer standalone vs stacked PR mode\nfrom git branch and existing PR relationships.\n\nWhen running on main/master, default to standalone PR mode and only\nenter stack mode when explicitly requested by the user.\n\nCo-Authored-By: Claude <noreply@anthropic.com>
* fix(create-java-pr): Detect collection branches with downstream PRs
Check for downstream PRs even when the current branch already has a PR targeting main/master.
This prevents collection branches in a stacked PR flow from being misclassified as standalone PR context.
Co-Authored-By: Claude <noreply@anthropic.com>
* 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>
* 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>
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent e5cd1c6 commit ca6b6d8
1 file changed
Lines changed: 39 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | | - | |
17 | | - | |
18 | | - | |
| 16 | + | |
19 | 17 | | |
20 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
21 | 54 | | |
22 | 55 | | |
23 | 56 | | |
| |||
0 commit comments