| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Use the REST API to manage a code quality configuration.
Lists code quality findings for a repository.
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.
This endpoint works with the following fine-grained token types:
The fine-grained token must have the following permission set:
| Name, Type, Description |
|---|
accept string Setting to application/vnd.github+json is recommended. |
| Name, Type, Description |
|---|
owner string Required The account owner of the repository. The name is not case sensitive. |
repo string Required The name of the repository without the .git extension. The name is not case sensitive. |
| Name, Type, Description |
|---|
per_page integer The number of results per page (max 100). For more information, see "Using pagination in the REST API." Default: 30 |
direction string The direction to sort the results by. Default: desc Can be one of: asc, desc |
before string A 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." |
after string A 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." |
state string If specified, only code quality findings with this state will be returned. Can be one of: open, dismissed |
| Status code | Description |
|---|---|
| 200 | OK |
| 403 | Response if the user is not authorized to access Code quality for this repository. |
| 404 | Resource not found |
| 503 | Service unavailable |
Response
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.
This endpoint works with the following fine-grained token types:
The fine-grained token must have the following permission set:
| Name, Type, Description |
|---|
accept string Setting to application/vnd.github+json is recommended. |
| Name, Type, Description |
|---|
owner string Required The account owner of the repository. The name is not case sensitive. |
repo string Required The name of the repository without the .git extension. The name is not case sensitive. |
finding_number integer Required The number that identifies a finding. |
| Status code | Description |
|---|---|
| 200 | OK |
| 403 | Response if the user is not authorized to access Code quality for this repository. |
| 404 | Resource not found |
| 503 | Service unavailable |
Response
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.
This endpoint works with the following fine-grained token types:
The fine-grained token must have the following permission set:
| Name, Type, Description |
|---|
accept string Setting to application/vnd.github+json is recommended. |
| Name, Type, Description |
|---|
owner string Required The account owner of the repository. The name is not case sensitive. |
repo string Required The name of the repository without the .git extension. The name is not case sensitive. |
| Status code | Description |
|---|---|
| 200 | OK |
| 403 | Response if the user is not authorized to access Code quality for this repository. |
| 404 | Resource not found |
| 503 | Service unavailable |
Response
Updates 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.
This endpoint works with the following fine-grained token types:
The fine-grained token must have the following permission set:
| Name, Type, Description |
|---|
accept string Setting to application/vnd.github+json is recommended. |
| Name, Type, Description |
|---|
owner string Required The account owner of the repository. The name is not case sensitive. |
repo string Required The name of the repository without the .git extension. The name is not case sensitive. |
| Name, Type, Description |
|---|
state string The desired state of code quality setup. Can be one of: configured, not-configured |
runner_type string Runner type to be used. Can be one of: standard, labeled |
runner_label string or null Runner label to be used if the runner type is labeled. |
languages array of strings Languages to be analyzed. Supported values are: csharp, go, java-kotlin, javascript-typescript, python, ruby |
ai_findings_option string Whether AI findings run for Code Quality on this repository. Can be one of: disabled, on_push |
| Status code | Description |
|---|---|
| 200 | OK |
| 202 | Accepted |
| 403 | Response if the repository is archived or if Code quality is not enabled for this repository |
| 404 | Resource not found |
| 409 | Response if there is already a code quality setup configuration update in progress |
| 422 | Response if the configuration change cannot be made |
| 503 | Service unavailable |
Response
| Back | FazBrowse Home | New Git URL |