Commit bb7d91f
ci(lint): add a
The dispatch-gates self-test grew a live census that reads the CONTENT
of every tracked `.sh` file (comment-masked watch-hint extraction), but
the selector's pm_dispatch_gates read-set had no `*.sh` rule. A
modified shell script under packages/**, apps/**, examples/**, docs/**
or content/** that does not sit in a scripts/ subdirectory classified
to a class whose arm skips the gate, silently disarming a required
merge check for the one path shape `*/scripts/*` does not already
cover.
Add `case "$path" in *.sh) return 0 ;; esac` beside the existing
`.gitignore` arm, before the class switch, so any `.sh` file runs the
family whatever class it sits in -- a strict superset of what already
ran, so it can only widen coverage, never narrow it.
Add a self-test case that drives the window directly: a
`packages/a/foo.sh` modified at status M now selects pm_dispatch_gates
(asserted red against the unmodified script, green after), with a
negative control confirming a docs-class file at status M still
skips every family.
Claude-Session: https://claude.ai/code/session_012GKcPZbMoGq7WPzKLfRBTU
Co-authored-by: Claude <noreply@anthropic.com>.sh arm to select-gate-families's pm_dispatch_gates read-set (#16986)1 parent 09c1d91 commit bb7d91f
2 files changed
Lines changed: 24 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| 70 | + | |
70 | 71 | | |
71 | 72 | | |
72 | 73 | | |
| |||
428 | 429 | | |
429 | 430 | | |
430 | 431 | | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
431 | 439 | | |
432 | 440 | | |
433 | 441 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| |||
314 | 314 | | |
315 | 315 | | |
316 | 316 | | |
317 | | - | |
318 | | - | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
319 | 321 | | |
| 322 | + | |
320 | 323 | | |
321 | 324 | | |
322 | 325 | | |
| |||
0 commit comments