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): make size-gate file/line thresholds configurable
The oversized-PR HOLD gate (gate.size.mode) has been configurable for
a while, but its actual thresholds -- SIZE_HOLD_DEFAULT_MAX_FILES=10 /
SIZE_HOLD_DEFAULT_MAX_LINES=1000 -- were bare hardcoded constants in
src/rules/advisory.ts (and its engine-parity twin), with no way to
override them. The doc comments on GateCheckPolicy.sizeGateMode
already referenced sizeGateMaxFiles/sizeGateMaxLines as if they
existed; they never did.
Adds sizeGateMaxFiles/sizeGateMaxLines as real RepositorySettings
fields, wired through gate.size.maxFiles/maxLines in the config
parser (both the host and engine copies), gateCheckPolicy, and
buildSizeHoldFinding in both src/rules/advisory.ts and its engine
twin -- falling back to the same 10/1000 defaults when unset, so
existing behavior is unchanged until an operator sets one.
0 commit comments