Skip to content

Commit ec8de36

Browse files
committed
fix: revert stray specify.md changes + fix PowerShell -Number sentinel
- Reverted templates/commands/specify.md to upstream (unrelated edits from the cloud-edge workflow simplification had leaked into the PR) - Changed PowerShell -Number default from 0 to -1 so that explicitly passing -Number 0 is correctly detected as explicit (fixes false negative where the guardrail wouldn't fire for prefix 000)
1 parent 4e871e4 commit ec8de36

2 files changed

Lines changed: 4 additions & 6 deletions

File tree

scripts/powershell/create-new-feature.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
param(
55
[switch]$Json,
66
[string]$ShortName,
7-
[int]$Number = 0,
7+
[int]$Number = -1,
88
[switch]$Help,
99
[Parameter(ValueFromRemainingArguments = $true)]
1010
[string[]]$FeatureDescription
@@ -215,8 +215,8 @@ if ($ShortName) {
215215
# Determine branch number
216216
# Track whether the caller explicitly passed -Number so the guardrail below
217217
# only fires for explicit overrides, not for auto-detected numbers.
218-
$numberExplicit = ($Number -ne 0)
219-
if ($Number -eq 0) {
218+
$numberExplicit = ($Number -ge 0)
219+
if ($Number -lt 0) {
220220
if ($hasGit) {
221221
# Check existing branches on remotes
222222
$Number = Get-NextBranchNumber -SpecsDir $specsDir

templates/commands/specify.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ Given that feature description, do this:
129129

130130
c. **Handle Validation Results**:
131131

132-
- **If all items pass**: Mark checklist complete and proceed to step 6
132+
- **If all items pass**: Mark checklist complete and proceed to step 7
133133

134134
- **If items fail (excluding [NEEDS CLARIFICATION])**:
135135
1. List the failing items and specific issues
@@ -178,8 +178,6 @@ Given that feature description, do this:
178178

179179
**NOTE:** The script creates and checks out the new branch and initializes the spec file before writing.
180180

181-
## General Guidelines
182-
183181
## Quick Guidelines
184182

185183
- Focus on **WHAT** users need and **WHY**.

0 commit comments

Comments
 (0)