Sample - GitHub REST API
GET/repos/{owner}/{repo}/code-quality/findings/{finding_number}

Get a code quality finding

Gets a single code quality finding.

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.

  • RetriesRetries up to 2×, 500ms backoff, 30s timeout.

3 parameters
ownerstringrequired
The account owner of the repository. The name is not case sensitive.
repostringrequired
The name of the repository without the `.git` extension. The name is not case sensitive.
finding_numberintegerrequired
The number that identifies a finding.

4 status codes
200Response
numberintegerrequired
The finding number.
statestringrequired
State of the code quality finding.
Allowed:opendismissed
urlstringrequired
The REST API URL of the code quality finding resource.
ruleobjectrequired
Code quality rule
locationobjectrequired
Code quality file location
messageobjectrequired
Code quality finding message
created_atstringoptional
The time the code quality finding was created.
403Response if the user is not authorized to access Code quality for this repository.
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional
404Resource not found
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional
503Service unavailable
codestringoptional
messagestringoptional
documentation_urlstringoptional

Error handling

A 403 is returned: Response if the user is not authorized to access Code quality for this repository. A 404 is returned: Resource not found. A 503 is returned: Service unavailable.