Skip to content

fix(pull-sdlc): restore blank-line separators dropped by stream refactor (#194)#197

Merged
MarkMichaelis merged 1 commit into
mainfrom
fix/196-blank-lines
Jun 7, 2026
Merged

fix(pull-sdlc): restore blank-line separators dropped by stream refactor (#194)#197
MarkMichaelis merged 1 commit into
mainfrom
fix/196-blank-lines

Conversation

@MarkMichaelis

Copy link
Copy Markdown
Contributor

Summary

The output-stream refactor (#194 / #195) dropped two blank-line separators that the original code emitted via Write-Host '', so the -WhatIf specified; no changes written. and Already up to date. footers printed flush against the planned-ops preview.

Before (regression)

    add     README.md.template
-WhatIf specified; no changes written.

After (restored)

    add     README.md.template

-WhatIf specified; no changes written.

Change

  • Restore Write-Information '' before each footer (same stream as the footer message, so they suppress/redirect together via 6>).
  • NOT added to Write-PlannedOpsPreview or the apply path -- the Applied N ops. line never had a leading blank line, so it stays unchanged.

Tests

Two behavior-first tests added to the Output stream assignment (issue #194) block, asserting the Information-stream record immediately before each footer is an empty string. Both fail on the pre-fix code (separator absent) and pass after.

  • Invoke-Pester -Path .\Pull-SDLC.ai.Tests.ps1 -> 201 passed, 0 failed
  • Invoke-ScriptAnalyzer -Path .\Pull-SDLC.ai.ps1 -Severity Warning,Error -> no new findings (PSAvoidUsingWriteHost still 0)

Closes #196

…e footers

The output-stream refactor (#194) dropped two Write-Host '' separators
when converting the footers to Write-Information, so the -WhatIf
specified; no changes written. and Already up to date. lines printed
flush against the planned-ops preview.

Restore the separators as Write-Information '' (same stream as the
footer so they suppress/redirect together). Not added to the preview
helper or the apply path -- the Applied N ops. line never had a
leading blank line.

Closes #196

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@MarkMichaelis MarkMichaelis merged commit 26331fe into main Jun 7, 2026
2 checks passed
@MarkMichaelis MarkMichaelis deleted the fix/196-blank-lines branch June 7, 2026 19:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(pull-sdlc): restore blank-line separators dropped by stream refactor (#194)

1 participant