github.pulls.get_exact_pr ​
Read a normalized GitHub pull request snapshot for delivery orchestration.
Overview ​
| Property | Value |
|---|---|
| Workflow type | Atomic |
| Library | App-github |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
organization_uuid | uuid | Yes | — | — |
actor | string | No | — | — |
workflow_run_id | string | No | — | — |
github_connection_uuid | uuid | No | — | — |
repository | string | Yes | — | — |
pull_number | integer | Yes | — | — |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
status | string | No | — | — |
repository | string | No | — | — |
pull_number | integer | No | — | — |
html_url | string | No | — | — |
title | string | No | — | — |
state | string | No | — | — |
draft | boolean | No | — | — |
head_ref | string | No | — | — |
head_sha | string | No | — | — |
head_repository | string | No | — | The head repo's full_name as owner/name, or null when GitHub reports no head repository |
base_repository | string | No | — | The base repo's full_name |
is_fork | boolean | No | — | True when the head repository is missing or differs from the base repository |
base_ref | string | No | — | — |
base_sha | string | No | — | — |
mergeable | boolean | No | — | — |
mergeable_state | string | No | — | — |
merged | boolean | No | — | — |
merge_commit_sha | string | No | — | — |
changed_files | integer | No | — | — |
additions | integer | No | — | — |
deletions | integer | No | — | — |
labels | list | No | — | — |
updated_at | string | No | — | — |
warnings | list | No | — | — |
failure_reason | string | No | — | — |
failed_step | string | No | — | — |
failed_layer | string | No | — | — |
failed_at_state | string | No | — | — |
error | string | No | — | — |
error_type | string | No | — | — |
failed_at | string | No | — | — |
States ​
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
pending | Yes | No | — | execute | — |
completed | No | Yes | Yes | — | — |
failed | No | Yes | No | — | — |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
pending | execute | completed | — |
* (any state) | fail | failed | — |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "github.pulls.get_exact_pr",
"initial_data": {
"organization_uuid": "value",
"repository": "value",
"pull_number": 123
}
}