check:private: the pre-push run reads the tree only, so a hit in a commit message is found only after the push that made it permanent #65
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Purpose (gap): a member finds every hit that would hold a pull request red before the push that makes it permanent, using the command the docs name for exactly that moment.
What happened, 2026-11-22. Two branches in the same train went red on ci.yml's
privatejob ("nothing private") for hits that no later commit can clear:declared.tscomment spelled three refused forms in prose — two documentation addresses that the check must keep refusing, and a home directory one character from the one the list declares. A later commit rewrote that comment, so the tip's tree reads clean; the range does not, because the range reads every commit of the pull request.The mechanism.
read_sources.tsreads commit messages and every commit's added lines only when the check is given--range(commitSources); without it,treeSourcesreads the tracked tree alone.docs/nothing-private-gets-in.mdtells a member "Run it before you push (npm run check:private, below)", while the range invocation appears two sections below that line. So the command the doc names for the moment before a push printsnothing privateon a branch CI will hold red forever — and the same doc's only remedy for a pushed commit is that "the work lands from a fresh branch of clean commits and the old branch is deleted".A member cannot clear this class by declaring the form either: the three forms in PR 62 are the ones the check's own tests require to be refused, so a declaration would trade the guard for the green.
Ask. A check that fails mechanically, in whichever form the owner prefers:
--range <base>..<head>) and a test pins that line, or--rangeprints one line naming what it did not read (the commits and their messages), and a test pins that line.Today neither exists: the first time a member learns of a message hit is the CI run after the push, and by then the only fix is a rebuild.
Refs #60, #39, #55 (B19).