Skip to content
Proud to collaborate with Microsoft for Startups

github.pulls.list_pr_files ​

List a GitHub pull request's changed files with bounded unified-diff patches.

Overview ​

PropertyValue
Workflow typeAtomic
LibraryApp-github
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
organization_uuiduuidYes——
actorstringNo——
workflow_run_idstringNo——
github_connection_uuiduuidNo——
repositorystringYes——
pull_numberintegerYes——
include_patchbooleanNo—Include per-file unified-diff hunks (default true).
max_filesintegerNo—Files to return (default 100, hard cap 300).
max_patch_bytes_per_fileintegerNo—Per-file patch byte cap (default 8192).
max_total_patch_bytesintegerNo—Total patch byte budget (default 262144).

Output Schema ​

FieldTypeRequiredDefaultDescription
repositorystringNo——
pull_numberintegerNo——
fileslistNo—Per-file rows: filename, status, additions, deletions, changes, previous_filename, sha, patch, patch_truncated, patch_omitted.
total_filesintegerNo——
files_returnedintegerNo——
files_omittedintegerNo—Changed files NOT in this response (beyond max_files).
patches_truncatedintegerNo——
patches_omittedintegerNo——
completebooleanNo—True ONLY when every changed file is present with its full patch. A reviewer must not approve on complete=false without reading the omitted/truncated files another way.
warningslistNo——
failure_reasonstringNo——
failed_stepstringNo——
failed_layerstringNo——
failed_at_statestringNo——
errorstringNo——
error_typestringNo——
failed_atstringNo——

States ​

StateInitialTerminalSuccessAuto-advanceDescription
pendingYesNo—execute—
completedNoYesYes——
failedNoYesNo——

State Diagram ​

Transitions ​

FromActionToDescription
pendingexecutecompleted—
* (any state)failfailed—

API Usage ​

bash
POST /api/workflows/start
Content-Type: application/json

{
  "workflow_type": "github.pulls.list_pr_files",
  "initial_data": {
    "organization_uuid": "value",
    "repository": "value",
    "pull_number": 123
  }
}