Commit ae19f5e
feat(pm): census the open cards whose named changeset target is already consumed (#17245)
A card whose deliverable is one line in a pending `.changeset/*.md` carries a
hard deadline that nothing measured: once a release compiles the file into
`packages/<pkg>/CHANGELOG.md` the one-line edit is gone, while the card's prose
goes on asserting the file is "still pending" forever.
`scripts/pm/changeset-deadline-census.mjs` is the detection half, report-only:
it scans open issue BODIES for concrete `.changeset/<name>.md` paths and reports
each target's state on the ref. Presence is a LINE COUNT corroborated against a
single `.changeset/` listing — never an exit code, because `git ls-tree` exits 0
when nothing matches — and every run establishes a corpus, a positive and a
negative control before it judges a row, refusing outright when one fails. An
absent path is asked whether it ever landed, inside a history horizon proved per
row against the card's own filing date, so a shallow clone yields `inconclusive`
rather than a guess. The blind spots are printed by every run.
Nothing here fails a build: the new population is censused before anything is
enforced. Only the offline self-test runs in CI.
Claude-Session: https://claude.ai/code/session_012GKcPZbMoGq7WPzKLfRBTU
Co-authored-by: Claude <noreply@anthropic.com>1 parent c1d54db commit ae19f5e
3 files changed
Lines changed: 821 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1103 | 1103 | | |
1104 | 1104 | | |
1105 | 1105 | | |
| 1106 | + | |
| 1107 | + | |
| 1108 | + | |
| 1109 | + | |
| 1110 | + | |
| 1111 | + | |
| 1112 | + | |
| 1113 | + | |
| 1114 | + | |
| 1115 | + | |
| 1116 | + | |
| 1117 | + | |
| 1118 | + | |
| 1119 | + | |
| 1120 | + | |
| 1121 | + | |
| 1122 | + | |
| 1123 | + | |
| 1124 | + | |
| 1125 | + | |
| 1126 | + | |
| 1127 | + | |
1106 | 1128 | | |
1107 | 1129 | | |
1108 | 1130 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| 82 | + | |
82 | 83 | | |
83 | 84 | | |
84 | 85 | | |
| |||
0 commit comments