Skip to content

Commit 750578b

Browse files
jawwad-aliclaude
andcommitted
docs: note DRY_RUN in the HAS_GIT-omission comment (parity)
Address Copilot review: the comment described the output contract as {BRANCH_NAME, FEATURE_NUM} without mentioning that DRY_RUN is still conditionally added in JSON mode on dry runs. Clarify so the contract description is complete for future maintainers. Comment-only. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
1 parent 349d253 commit 750578b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎extensions/git/scripts/powershell/create-new-feature-branch.ps1‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,8 @@ if ($Json) {
402402
FEATURE_NUM = $featureNum
403403
}
404404
# $hasGit is computed for branch-creation logic only; it is intentionally not
405-
# emitted so this output contract matches the bash twin ({BRANCH_NAME, FEATURE_NUM}).
405+
# emitted so this output contract matches the bash twin: BRANCH_NAME and
406+
# FEATURE_NUM, plus DRY_RUN (added just below) on dry runs.
406407
if ($DryRun) {
407408
$obj | Add-Member -NotePropertyName 'DRY_RUN' -NotePropertyValue $true
408409
}

0 commit comments

Comments
 (0)