Overview
Integrate with gate CLI for quality checks before merge.
Commands
pr check
pr check 123 # Run gate checks on PR
pr check 123 --quick # Fast checks only
pr check # Check current branch's PR
pr certify
pr certify 123 # Full gate certification
pr certify 123 --force # Skip cache, fresh check
Integration Points
Gate CLI
# pr check calls gate internally
gate check --pr=123 --report
Prefrontal-cortex API
// POST /api/gate/results
[
'repo' => 'owner/repo',
'pr' => 123,
'gate_status' => 'passed|failed',
'sha' => 'abc123',
'checks' => [...],
]
PullRequestState (Event Sourcing)
- PR checked event
- PR certified event
- PR blocked event (if gate fails)
Dependencies
gate CLI must be installed
PREFRONTAL_API_TOKEN env var for cloud sync
Overview
Integrate with gate CLI for quality checks before merge.
Commands
pr checkpr certifyIntegration Points
Gate CLI
# pr check calls gate internally gate check --pr=123 --reportPrefrontal-cortex API
PullRequestState (Event Sourcing)
Dependencies
gateCLI must be installedPREFRONTAL_API_TOKENenv var for cloud sync