v56

latestOpenAPI 3.0.3MITraw.githubusercontent.com2026-08-011,4581,08113.3 MB
code-quality

Get a code quality setup configuration

Gets a code quality setup configuration.

OAuth app tokens and personal access tokens (classic) need the repo scope to use this endpoint with private or public repositories, or the public_repo scope to use this endpoint with only public repositories.

get/repos/{owner}/{repo}/code-quality/setup

Path parameters

ownerstring required

The account owner of the repository. The name is not case sensitive.

repostring required

The name of the repository without the .git extension. The name is not case sensitive.

Response

Response

state'configured' | 'not-configured'

Code quality setup has been configured or not.

languagesstring[]

Languages to be analyzed.

runner_type'standard' | 'labeled' nullable

Runner type to be used.

runner_labelstring nullable

Runner label to be used if the runner type is labeled.

updated_atstring date-time nullable

Timestamp of latest configuration update.

schedule'weekly' nullable

The frequency of the periodic analysis.

ai_findings_option'disabled' | 'on_push' nullable

The AI findings configuration for the repository.

Example response

{
  "runner_label": "code-scanning",
  "updated_at": "2023-12-06T14:20:20.000Z"
}