{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/github-copilot/json-schema/github-copilot-repository-copilot-code-review-settings-schema.json",
  "title": "Repository Copilot Code Review Settings",
  "description": "The repository's Copilot code review settings. These settings tune reviews; they do not enable Copilot code review.",
  "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/repository-copilot-code-review-settings",
  "type": "object",
  "properties": {
    "review_effort": {
      "type": "object",
      "description": "The review effort for the repository. For more information, see [Review effort level](https://docs.github.com/copilot/concepts/agent-capabilities/agent-powered-workflows-and-operations/code-review#review-effort-level).",
      "properties": {
        "configured": {
          "type": [
            "string",
            "null"
          ],
          "description": "The review effort stored for the repository. Null means the repository inherits the default, or has stored a value that is not currently available."
        },
        "effective": {
          "type": "string",
          "description": "The review effort reviews use when the requester and the pull request do not choose one. When that effort is not currently available for the repository, this reports the effort reviews would use without it."
        }
      },
      "required": [
        "configured",
        "effective"
      ]
    },
    "available_review_efforts": {
      "type": "array",
      "description": "The review efforts that can currently be set for this repository, in display order.",
      "items": {
        "type": "string"
      }
    },
    "severity_filter": {
      "type": "string",
      "description": "Which review comment severities Copilot code review leaves out. `no_filter` keeps every comment, `low` leaves out low-severity comments, and `low_and_medium` leaves out low- and medium-severity comments.",
      "enum": [
        "no_filter",
        "low",
        "low_and_medium"
      ]
    },
    "custom_instructions_enabled": {
      "type": "boolean",
      "description": "Whether reviews use the repository's custom instructions."
    },
    "mcp_enabled": {
      "type": "boolean",
      "description": "Whether reviews can use MCP servers."
    }
  },
  "required": [
    "review_effort",
    "available_review_efforts",
    "severity_filter",
    "custom_instructions_enabled",
    "mcp_enabled"
  ]
}