Skip to content

Gate integration - pr check and pr certify #3

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions