You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Tighten the Remaining Gaps in configure.sh's Labels Payload Validator #2229
Found by the local review pass on the #1372 fix, all in labels_payload_ok in repo-config/configure.sh, and none introduced by that fix. Each was shown by running the function on a constructed payload, except where marked.
Case folding is ASCII only. The duplicate-name test uses ascii_downcase, so entries named É and é both pass, though GitHub compares names case-insensitively (not confirmed against the API).
Name length is unbounded. An 80-character name passes, and GitHub is believed to cap label names at 50 characters, so apply_labels would fail partway through, after the settings writes. A whitespace-only name also passes (not confirmed rejected by GitHub).
A leading dash is accepted. A name such as -h passes, and gh label create "$lname" would read it as a flag (from flag parsing, not run).
Odd characters pass the character test. A NUL, vertical tab, or U+2028 in a name passes, and a NUL is dropped by the rows substitution, so the label created differs from the one declared. jq also accepts nan as a document.
Parse versus jq failure depends on jq's message text. The split keys on the words parse error, which holds for jq 1.6 to 1.8 and not for gojq or jaq installed as jq.
Needs a decision on how far the contract should grow before it is changed, since each added check is a new place for a defect.
Closed under the maintainer's decision (ptr727, 2026-10-23) on #3391: the backlog keeps real bugs with a stated failure, features the maintainer wants, and open decisions. A finding the review loop filed on code or text a change did not touch, a refactor or consolidation chore, a tracker, a wording item, or a guard shape no session has produced is closed rather than worked. Reopen with the input and the wrong result if this issue states one.
Activity
Tell Apart the Causes a Labels Payload Is Refused For (#2230)
ptr727 commentedon Oct 23, 2026
Closed under the maintainer's decision (ptr727, 2026-10-23) on #3391: the backlog keeps real bugs with a stated failure, features the maintainer wants, and open decisions. A finding the review loop filed on code or text a change did not touch, a refactor or consolidation chore, a tracker, a wording item, or a guard shape no session has produced is closed rather than worked. Reopen with the input and the wrong result if this issue states one.