{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/github-copilot/json-schema/github-copilot-organization-copilot-code-review-runner-schema.json",
  "title": "Organization Copilot Code Review Runner Configuration",
  "description": "The effective runner configuration that Copilot code review uses for the organization.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/github-copilot-copilot-api-openapi.yml#/components/schemas/organization-copilot-code-review-runner",
  "type": "object",
  "properties": {
    "runner_type": {
      "type": "string",
      "description": "The type of runner. `standard` uses GitHub-hosted runners. `labeled` uses runners that match the configured labels or runner group.",
      "enum": [
        "standard",
        "labeled"
      ]
    },
    "runner_labels": {
      "type": "array",
      "description": "The runner labels used for a labeled runner.",
      "items": {
        "type": "string"
      }
    },
    "runner_group_name": {
      "type": [
        "string",
        "null"
      ],
      "description": "The runner group used for a labeled runner, or null when none is set."
    },
    "allow_repository_customization": {
      "type": "boolean",
      "description": "Whether repositories can use their own runner configuration."
    },
    "configured_by": {
      "type": "string",
      "description": "Which configuration the values come from. `code_review` means the organization has saved a Copilot code review runner configuration. `coding_agent` means it has not, and the values are inherited from the organization's Copilot coding agent runner configuration.",
      "enum": [
        "code_review",
        "coding_agent"
      ]
    }
  },
  "required": [
    "runner_type",
    "runner_labels",
    "runner_group_name",
    "allow_repository_customization",
    "configured_by"
  ]
}