Skip to content

GitHub: Code quality schemas

7 GitHub schemas with complete fields and constraints.

← Code quality operations · All schemas

Get a code quality finding — response body

FieldTypePresenceDescription and constraints
$objectRootCode quality finding
created_atstringOptionalThe time the code quality finding was created.
Format: date-time
locationModelRequired within parentExpand Get a code quality finding — response body — location
messageModelRequired within parentExpand Get a code quality finding — response body — message
numberJSONRequired within parent
number (anyOf 1)integerAlternativeThe finding number.
number (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
ruleModelRequired within parentExpand Get a code quality finding — response body — rule
statestringRequired within parentState of the code quality finding.
Known values: open, dismissed
urlstringRequired within parentThe REST API URL of the code quality finding resource.
Format: uri

Referenced models: Get a code quality finding — response body — location, Get a code quality finding — response body — message, Get a code quality finding — response body — rule

Get a code quality finding — response body — location

FieldTypePresenceDescription and constraints
$objectRootCode quality file location
end_columnJSONOptional
end_column (anyOf 1)integerAlternativeThe column number where the finding ends.
end_column (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
end_lineJSONOptional
end_line (anyOf 1)integerAlternativeThe line number where the finding ends.
end_line (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
pathstringRequired within parentThe file path where the finding was detected.
start_columnJSONOptional
start_column (anyOf 1)integerAlternativeThe column number where the finding starts.
start_column (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
start_lineJSONOptional
start_line (anyOf 1)integerAlternativeThe line number where the finding starts.
start_line (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$

Get a code quality finding — response body — message

FieldTypePresenceDescription and constraints
$objectRootCode quality finding message
markdownstringRequired within parentThe message text of the code quality finding in markdown format.
textstringRequired within parentThe message text of the code quality finding.

Get a code quality finding — response body — rule

FieldTypePresenceDescription and constraints
$objectRootCode quality rule
categorystringRequired within parentThe category of the rule used to detect the finding.
Known values: none, maintainability, reliability
descriptionstringRequired within parentA short description of the rule used to detect the finding.
helpstringOptionalA detailed description of the rule used to detect the finding.
idstringRequired within parentA unique identifier for the rule used to detect the finding.
severitystringRequired within parentThe severity of the rule used to detect the finding.
Known values: error, warning, note, none
titlestringRequired within parentThe name of the rule used to detect the finding.

Get a code quality setup configuration — response body

FieldTypePresenceDescription and constraints
$objectRootConfiguration for code quality setup.
ai_findings_optionJSONOptional
ai_findings_option (anyOf 1)stringAlternativeThe AI findings configuration for the repository.
Known values: disabled, on_push
ai_findings_option (anyOf 2)nullAlternative
languagesarrayOptionalLanguages to be analyzed.
languages[]stringEach itemKnown values: csharp, go, java-kotlin, javascript-typescript, python, ruby, rust
runner_labelJSONOptional
runner_label (anyOf 1)stringAlternativeRunner label to be used if the runner type is labeled.
runner_label (anyOf 2)nullAlternative
runner_typeJSONOptional
runner_type (anyOf 1)stringAlternativeRunner type to be used.
Known values: standard, labeled
runner_type (anyOf 2)nullAlternative
scheduleJSONOptional
schedule (anyOf 1)stringAlternativeThe frequency of the periodic analysis.
Known values: weekly
schedule (anyOf 2)nullAlternative
statestringOptionalCode quality setup has been configured or not.
Known values: configured, not-configured
updated_atJSONOptional
updated_at (anyOf 1)stringAlternativeTimestamp of latest configuration update.
Format: date-time
updated_at (anyOf 2)nullAlternative

Update a code quality setup configuration — request body — body

FieldTypePresenceDescription and constraints
$objectRootConfiguration for code quality setup.
Additional keys: not allowed
ai_findings_optionstringOptionalWhether AI findings run for Code Quality on this repository.
One of: disabled, on_push
languagesarrayOptionalLanguages to be analyzed.
languages[]stringEach itemOne of: csharp, go, java-kotlin, javascript-typescript, python, ruby
runner_labelJSONOptional
runner_label (anyOf 1)stringAlternativeRunner label to be used if the runner type is labeled.
runner_label (anyOf 2)nullAlternative
runner_typestringOptionalRunner type to be used.
One of: standard, labeled
statestringOptionalThe desired state of code quality setup.
One of: configured, not-configured
$ (anyOf 1)JSONAlternative
$ (anyOf 2)JSONAlternative
$ (anyOf 3)JSONAlternative
$ (anyOf 4)JSONAlternative
$ (anyOf 5)JSONAlternative

Update a code quality setup configuration — response body — run id, run url

FieldTypePresenceDescription and constraints
$objectRootYou can use `run_url` to track the status of the run. This includes a property status and conclusion.
You should not rely on this always being an actions workflow run object.
run_idJSONOptional
run_id (anyOf 1)integerAlternativeID of the corresponding run.
run_id (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
run_urlstringOptionalURL of the corresponding run.

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.