---
title: "Get a code quality finding"
method: GET
path: "/repos/{owner}/{repo}/code-quality/findings/{finding_number}"
tags: ["code-quality"]
---

# Get a code quality finding

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

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.

## Path parameters

- `owner` string, required
- `repo` string, required
- `finding_number` integer, required

## Response `200`

Response

- CodeQualityFinding — Code quality finding
  - `number` integer, required — The finding number.
  - `state` 'open' | 'dismissed', required — State of the code quality finding.
  - `url` string, uri, required — The REST API URL of the code quality finding resource.
  - `rule` CodeQualityFindingRule, required — Code quality rule
    - `id` string, required — A unique identifier for the rule used to detect the finding.
    - `title` string, required — The name of the rule used to detect the finding.
    - `description` string, required — A short description of the rule used to detect the finding.
    - `help` string — A detailed description of the rule used to detect the finding.
    - `severity` 'error' | 'warning' | 'note' | 'none', required — The severity of the rule used to detect the finding.
    - `category` 'none' | 'maintainability' | 'reliability', required — The category of the rule used to detect the finding.
  - `location` CodeQualityFindingLocation, required — Code quality file location
    - `path` string, required — The file path where the finding was detected.
    - `start_line` integer — The line number where the finding starts.
    - `start_column` integer — The column number where the finding starts.
    - `end_line` integer — The line number where the finding ends.
    - `end_column` integer — The column number where the finding ends.
  - `message` CodeQualityFindingMessage, required — Code quality finding message
    - `text` string, required — The message text of the code quality finding.
    - `markdown` string, required — The message text of the code quality finding in markdown format.
  - `created_at` string, date-time — The time the code quality finding was created.

## Other responses

- `403` — Response if the user is not authorized to access Code quality for this repository.
- `404` — Resource not found
- `503` — Service unavailable

---

[API](https://skmtc.net/github/apis/github-v3-rest-api-3.md) · [All operations](https://skmtc.net/github/apis/github-v3-rest-api-3/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/github/github-v3-rest-api-3/versions/dc0584ac4e13/schema)
