← All tags

Code-Quality API Reference

Insights into reliability, maintainability, and efficiency of your codebase.

4 endpoints tagged code-quality, each listing its parameters and possible responses. Search or scroll the index below to jump to a specific endpoint.

No endpoints match your search.

List code quality findings for a repository

GET /repos/{owner}/{repo}/code-quality/findings

Lists code quality findings for a repository.

Parameters

NameInRequiredDescription
ownerpathyesThe account owner of the repository. The name is not case sensitive.
repopathyesThe name of the repository without the .git extension. The name is not case sensitive.
per_pagequerynoThe number of results per page (max 100). For more information, see "Using pagination in the REST API."
directionquerynoThe direction to sort the results by.
beforequerynoA cursor, as given in the Link header. If specified, the query only searches for results before this cursor. For more information, see "Using pagination in the REST API."
afterquerynoA cursor, as given in the Link header. If specified, the query only searches for results after this cursor. For more information, see "Using pagination in the REST API."
statequerynoIf specified, only code quality findings with this state will be returned.

Responses

StatusDescriptionHas JSON body
200Responseyes
403Response if the user is not authorized to access Code quality for this repository.yes
404Resource not foundyes
503Service unavailableyes

Get a code quality finding

GET /repos/{owner}/{repo}/code-quality/findings/{finding_number}

Gets a single code quality finding.

Parameters

NameInRequiredDescription
ownerpathyesThe account owner of the repository. The name is not case sensitive.
repopathyesThe name of the repository without the .git extension. The name is not case sensitive.
finding_numberpathyesThe number that identifies a finding.

Responses

StatusDescriptionHas JSON body
200Responseyes
403Response if the user is not authorized to access Code quality for this repository.yes
404Resource not foundyes
503Service unavailableyes

Get a code quality setup configuration

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

Gets a code quality setup configuration.

Parameters

NameInRequiredDescription
ownerpathyesThe account owner of the repository. The name is not case sensitive.
repopathyesThe name of the repository without the .git extension. The name is not case sensitive.

Responses

StatusDescriptionHas JSON body
200Responseyes
403Response if the user is not authorized to access Code quality for this repository.yes
404Resource not foundyes
503Service unavailableyes

Update a code quality setup configuration

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

Updates a code quality setup configuration.

Parameters

NameInRequiredDescription
ownerpathyesThe account owner of the repository. The name is not case sensitive.
repopathyesThe name of the repository without the .git extension. The name is not case sensitive.

Responses

StatusDescriptionHas JSON body
200Responseyes
202Responseyes
403Response if the repository is archived or if Code quality is not enabled for this repositoryyes
404Resource not foundyes
409Response if there is already a code quality setup configuration update in progressyes
422Response if the configuration change cannot be madeyes
503Service unavailableyes