-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Overview
Sync PR lifecycle events with prefrontal-cortex cloud.
Events to Track
- PR created
- PR updated (commits pushed)
- PR reviewed
- PR checked (gate)
- PR merged
- PR closed
API Integration
// Sync PR state to cloud
$client->post('/api/pr/sync', [
'repo' => $this->getRepo(),
'pr_number' => $prNumber,
'state' => $state,
'sha' => $sha,
'author' => $author,
'reviewers' => $reviewers,
'checks' => $checks,
]);Commands
pr sync # Sync all open PRs
pr sync 123 # Sync specific PR
pr sync --push # Push local state to cloud
pr sync --pull # Pull cloud stateState Machine (PullRequestState)
Leverages Laravel Verbs state machine in prefrontal-cortex:
PullRequestOpenedPullRequestUpdatedPullRequestReviewedPullRequestCheckedPullRequestMergedPullRequestClosed
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels