Skip to content

Gate integration - pr check and pr certify #3

@jordanpartridge

Description

@jordanpartridge

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions