style: apply biome formatting to the step-block extractor

The new findIndex callback and the monoBlock array literal exceeded biome's
line budget, so `biome check --error-on-warnings .` failed and took the build
job red with it. Formatter output applied verbatim; no logic change, and the
extractor mutations still behave (unrelated job gated -> green, monotonic step
gated -> red).

My miss, and the same shape as the shellcheck one on box#144: I tailed two
lines of `npm run check` and never saw "Found 1 error". Ran CI's exact command
and read all of its output this time.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
dan-claude-bot 2026-07-20 21:04:17 +00:00
parent 7022894358
commit 601f6168f5

View file

@ -705,11 +705,16 @@ describe("changelog-monotonic.sh — release headings are append-only (#133)", (
/^ {6}- name: no shipped changelog heading/.test(l),
);
const after = ciLines.slice(monoStart + 1);
const monoEnd = after.findIndex((l) => /^ {6}- /.test(l) || /^ {2}\S/.test(l));
const monoEnd = after.findIndex(
(l) => /^ {6}- /.test(l) || /^ {2}\S/.test(l),
);
const monoBlock =
monoStart < 0
? undefined
: [ciLines[monoStart], ...after.slice(0, monoEnd < 0 ? after.length : monoEnd)].join("\n");
: [
ciLines[monoStart],
...after.slice(0, monoEnd < 0 ? after.length : monoEnd),
].join("\n");
expect(monoBlock).toBeDefined();
expect(monoBlock).toContain("changelog-monotonic.sh");
// Anchored: an `if:` inside a `run:` line is not a step condition.