capability_id: workflow.runs.list
version: "1.0.0"
description: List workflow runs for a repository.
input_schema:
  type: object
  required: [owner, name]
  properties:
    owner: { type: string, minLength: 1 }
    name: { type: string, minLength: 1 }
    first: { type: integer, minimum: 1, maximum: 100, default: 30 }
    after: { type: [string, "null"] }
    branch: { type: string, minLength: 1 }
    event: { type: string, minLength: 1 }
    status: { type: string, minLength: 1 }
  additionalProperties: false
output_schema:
  type: object
  required: [items, pageInfo]
  properties:
    items:
      type: array
      items:
        type: object
        required: [id, workflowName, status, conclusion, headBranch, url]
        properties:
          id: { type: integer, minimum: 0 }
          workflowName: { type: [string, "null"] }
          status: { type: [string, "null"] }
          conclusion: { type: [string, "null"] }
          headBranch: { type: [string, "null"] }
          url: { type: [string, "null"] }
        additionalProperties: false
    pageInfo:
      type: object
      required: [hasNextPage, endCursor]
      properties:
        hasNextPage: { type: boolean }
        endCursor: { type: [string, "null"] }
      additionalProperties: false
  additionalProperties: false
routing:
  preferred: cli
  fallbacks: []
cli:
  command: api
