diff --git a/scripts/pm/check-half-states.mjs b/scripts/pm/check-half-states.mjs index b415c207764..8c39144e7de 100644 --- a/scripts/pm/check-half-states.mjs +++ b/scripts/pm/check-half-states.mjs @@ -3991,6 +3991,22 @@ export function h13AreaWithoutPmState(issue, nowMs = Date.now()) { */ const BLOCKED_BY_REF = /(? numbersOf(blockedByTargets(b))).join('|'), '|||'); + t('blockedByTargets: …and only that directive: a sibling on the line still counts', numbersOf(blockedByTargets('`Blocked-by: none (#5)` · `Blocked-by: #6`')), '6'); + t('blockedByTargets: `none` AFTER a ref is prose, the ref still counts', numbersOf(blockedByTargets('Blocked-by: #7 (none of #8 matters)')), '7,8'); + t('blockedByTargets: a word that merely starts with `none` is not the token', numbersOf(blockedByTargets('Blocked-by: nonesuch#9, none-of-them #10')), '9,10'); + t('blockedByTargets: …and the `#A, #B` run, bulleted and bolded lines read as before', [ + 'Blocked-by: #6234, #6245', + '- Blocked-by: #9823', + '**Blocked-by:** #9823', + ].map((b) => numbersOf(blockedByTargets(b))).join('|'), '6234,6245|9823|9823'); + t('hasBlockedByLine: a `none` line is still a line (H4 asks presence, not targets)', hasBlockedByLine('Blocked-by: none. Order: independent of #36987.'), true); // The whole directive family reads through `directiveValues`, so all of it // gains the multiplicity — pinned on a NON-`Blocked-by:` key, beside the pin // that a key after a WORD is still prose and invents nothing.