Gate code reviews by impact
cr-threshold-gateworkflowsetup L2★0
wei18/Sudoku ↗What it does
check code review threshold gate
Best for
mechanical OR-gated CR dispatch (LOC > 50 OR core-module hit) without human judgment
Inputs
- · { baseBranch: 'main' (default), headRef: 'HEAD', repo: '.' }
Outputs
- · { status: 'NO_DIFF'|'CR_REQUIRED'|'CR_NOT_REQUIRED', required, triggers: [], rule, locThreshold, coreHits: [{file, module}] }
Requires
- · agent() executor (diff)
- · git diff --shortstat
- · git diff --name-only
Preconditions
- · git repo
- · CORE_MODULES list sync'd with methodology.md
Failure modes
- · LLM may miss shortstat parsing
- · diffEmpty logic redundantly re-derived in JS
Trust signals
- · CORE_MODULES SSOT references methodology.md §派發契約
- · rule explicitly states OR not AND