Skip to content

Integrate with prefrontal-cortex IssueState #3

Description

@jordanpartridge

Overview

Sync issue events with prefrontal-cortex for state tracking.

API Endpoint

  • URL: https://prefrontal-cortex-master-iw3xyv.laravel.cloud/api/issues
  • Auth: Bearer token via env PREFRONTAL_API_TOKEN

Events to sync

  • Issue created
  • Issue closed
  • Issue assigned
  • Issue labeled

Integration pattern

Follow knowledge sync pattern:

$this->getClient()->post('/api/issues', [
    'headers' => ['Authorization' => "Bearer {$token}"],
    'json' => [
        'repo' => $repo,
        'number' => $issueNumber,
        'action' => 'created|closed|assigned|labeled',
        'data' => [...],
    ],
]);

Reference

  • Knowledge SyncCommand: conduit-ui/knowledge/app/Commands/SyncCommand.php
  • Gate integration: synapse-sentinel/gate (issue #14)

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