{
  "slug": "github-graphql-api-adds-code-coverage-and-code-quality-rule-parameters-0c797e5017ba",
  "title": "GitHub GraphQL API adds code coverage and code quality rule parameters",
  "tools": [
    "github-graphql-api"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-09-21T00:00:00.000Z",
  "announced_at": "2026-09-21T00:00:00.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When configuring a repository ruleset through GraphQL, set `RuleParametersInput.codeCoverage` for coverage thresholds or `codeQuality` for review severity; specify only one field in `RuleParametersInput`.",
    "gotchas": [
      "RuleParametersInput.codeCoverage: Parameters for the `code_coverage` rule type. Only one field of `RuleParametersInput` should be specified.",
      "RuleParametersInput.codeQuality: Parameters for the `code_quality` rule type. Only one field of `RuleParametersInput` should be specified.",
      "CodeCoverageParametersInput.maxCoverageDrop: Maximum line coverage drop, in percentage points, relative to the default branch; setting a value of 0 disables the threshold.",
      "CodeCoverageParametersInput.minimumCoverage: Minimum line coverage percentage; setting a value of 0 disables the threshold.",
      "CodeQualityParametersInput.severity (required): Lowest severity level at which code quality reviews must be resolved before commits can be merged.",
      "CodeQualitySeverity.ALL: All severity levels.",
      "CodeQualitySeverity.ERRORS: Errors.",
      "CodeQualitySeverity.NOTES: Notes and higher.",
      "CodeQualitySeverity.WARNINGS: Warnings and higher.",
      "Prerequisite: For code coverage rules, GitHub Code Quality must be enabled and coverage data must be uploaded to GitHub for the pull request branch.",
      "Prerequisite: Coverage rules do not wait for coverage uploads; make each status check associated with an expected coverage upload a required status check to ensure coverage is evaluated before merging.",
      "Prerequisite: When a code quality rule is configured, a code quality analysis must be done on the pull request before changes can be merged."
    ]
  },
  "why_it_matters": "Configure code coverage or code quality parameters when maintaining repository rule configurations through GraphQL.",
  "sources": [
    "https://docs.github.com/en/graphql/overview/changelog#schema-changes-for-2026-09-21",
    "https://docs.github.com/en/enterprise-cloud@latest/graphql/reference/repos",
    "https://docs.github.com/en/code-security/how-tos/maintain-quality-code/restrict-code-coverage",
    "https://docs.github.com/en/graphql/reference/code-scanning"
  ],
  "rank": 0.9203,
  "judge": {
    "publish": true,
    "judge_model": "codex-cli/gpt-6-luna+typesafe/jev-1.13.0",
    "prompt_version": "extract-v7+enrich-v2+judge-v2x3+jev-publish-v1"
  },
  "review_state": "approved",
  "provenance": {
    "run_id": "wave1b-tools-20261017",
    "verdict_id": "wave1b-tools-20261017:wave1b-tools-20261017-459d9b7e333dfa44-1:gate",
    "evidence_hash": "5f61ad5dbed9d2f90db21822624a492ea830def8b6ae0190c7ba0f168c651772"
  },
  "review": {
    "draft_hash": "ae22f0b94264b98571dd9e57f45410b36b82a936e78e5e375849fb8f92691e66",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "wave1b-tools-20261017:gate",
    "reason": "2 of 3 judge runs approved with p_yes >= 0.9 (mean 0.92 >= 0.9; 2 needed) and Jev gave 0.75 (>= 0.6 needed)."
  }
}
