Commit 89f74f2
committed
feat(tooling): ban the whole-set label PUT in every spelling (#10778)
#10703 made both label writers in pr-automation.yml additive, removing the
two whole-set `PUT /issues/{n}/labels` writes. It could not make the verb
unavailable: nothing stopped a new third-party labeler or a second workflow
from reopening the same defect, and the only guard was a prose paragraph.
The gate asserts the card's three assertions over .github/workflows/**,
.github/actions/** and scripts/**: no PUT against the labels endpoint in any
spelling; no `uses:` of an action measured to write the whole set; and an
allowlist entry requires a stated reason, enforced by a refusal rather than
by the self-test alone.
Only executable content is judged -- the two files that document the ban
spell every forbidden form in comments, so a raw-text matcher would red on
the documentation of its own rule. The same matcher runs over raw and
comment-blanked text and both counts are printed, and PROSE_PROBES declares
the live prose that must keep matching, so the judged zero is a measurement
rather than a silence.
Measured: 194 files, 11 raw mentions all cleared as comments, 0 executable,
147 `uses:` pins over 18 distinct actions judged, 0 violations, 0 allowlist
entries.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015ahemw8RcTgqtxrj15PEZx1 parent 387e231 commit 89f74f2
2 files changed
Lines changed: 956 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1836 | 1836 | | |
1837 | 1837 | | |
1838 | 1838 | | |
| 1839 | + | |
| 1840 | + | |
| 1841 | + | |
| 1842 | + | |
| 1843 | + | |
| 1844 | + | |
| 1845 | + | |
| 1846 | + | |
| 1847 | + | |
| 1848 | + | |
| 1849 | + | |
| 1850 | + | |
| 1851 | + | |
| 1852 | + | |
| 1853 | + | |
| 1854 | + | |
| 1855 | + | |
| 1856 | + | |
| 1857 | + | |
| 1858 | + | |
| 1859 | + | |
| 1860 | + | |
| 1861 | + | |
| 1862 | + | |
| 1863 | + | |
| 1864 | + | |
| 1865 | + | |
| 1866 | + | |
| 1867 | + | |
| 1868 | + | |
| 1869 | + | |
| 1870 | + | |
| 1871 | + | |
| 1872 | + | |
| 1873 | + | |
| 1874 | + | |
| 1875 | + | |
| 1876 | + | |
| 1877 | + | |
| 1878 | + | |
1839 | 1879 | | |
1840 | 1880 | | |
1841 | 1881 | | |
| |||
0 commit comments