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
fix(review): mark gate.firstTimeContributorGrace as reserved/inert (#2411)
evaluateGateCheckCore in src/rules/advisory.ts never reads
policy.firstTimeContributorGrace (or its authorMergedPrCount /
authorClosedUnmergedPrCount companions) — a deliberate removal ("blocker
findings must remain closure/rejection outcomes") that the public-facing
docs never caught up with. A maintainer reading .gittensory.yml.example
would believe setting this true softens a blocker for newcomers; nothing
changes, and a first-time contributor with a real blocker is still
one-shot closed like anyone else.
- Rewrite the .gittensory.yml.example entry, the RepositorySettings field
doc in types.ts, and the GateCheckPolicy field docs in advisory.ts to
state the flag (and its two companion counts) are reserved/inert rather
than describing behavior that no longer runs.
- Emit a manifest warning when a repo explicitly sets
gate.firstTimeContributorGrace: true, so a maintainer relying on it gets
a visible signal instead of silent inertness. Unset/false (the default,
and also the effective behavior) does not warn.
This is not a guard weakening — the actual behavior was already stricter
than documented. Only the docs and warning are new.
// #2266: the flag is parsed, clamped, and threaded end-to-end, but the gate evaluator never reads it — a
459
+
// maintainer who sets it to true believing it softens a blocker for newcomers gets no such effect. Surface
460
+
// that inertness at parse time rather than leaving it silently no-op; `false`/unset matches the (also inert)
461
+
// default, so only an explicit `true` is worth flagging.
462
+
if(gate.firstTimeContributorGrace===true){
463
+
warnings.push(`Manifest field "gate.firstTimeContributorGrace" is currently reserved/inert — it does not soften a blocker outcome for first-time contributors.`);
0 commit comments