Update a code quality setup configuration
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.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The account owner of the repository. The name is not case sensitive.
The name of the repository without the .git extension. The name is not case sensitive.
Request Bodyrequired
Section titled “Request Bodyrequired”Configuration for code quality setup.
object
The desired state of code quality setup.
Runner type to be used.
Runner label to be used if the runner type is labeled.
Languages to be analyzed.
Whether AI findings run for Code Quality on this repository.
Configuration for code quality setup.
object
The desired state of code quality setup.
Runner type to be used.
Runner label to be used if the runner type is labeled.
Languages to be analyzed.
Whether AI findings run for Code Quality on this repository.
Configuration for code quality setup.
object
The desired state of code quality setup.
Runner type to be used.
Runner label to be used if the runner type is labeled.
Languages to be analyzed.
Whether AI findings run for Code Quality on this repository.
Configuration for code quality setup.
object
The desired state of code quality setup.
Runner type to be used.
Runner label to be used if the runner type is labeled.
Languages to be analyzed.
Whether AI findings run for Code Quality on this repository.
Configuration for code quality setup.
object
The desired state of code quality setup.
Runner type to be used.
Runner label to be used if the runner type is labeled.
Languages to be analyzed.
Whether AI findings run for Code Quality on this repository.
Examples
{ "state": "configured", "languages": [ "javascript-typescript", "python", "ruby" ]}Responses
Section titled “Responses”Response
An object without any properties.
object
Examples
nullResponse
You 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.
object
ID of the corresponding run.
URL of the corresponding run.
Examples
{ "run_id": 42, "run_url": "https://api.github.com/repos/octocat/hello-world/actions/runs/42"}Response if the repository is archived or if Code quality is not enabled for this repository
Basic Error
object
Examplegenerated
{ "message": "example", "documentation_url": "example", "url": "example", "status": "example"}Resource not found
Basic Error
object
Examplegenerated
{ "message": "example", "documentation_url": "example", "url": "example", "status": "example"}Response if there is already a code quality setup configuration update in progress
Basic Error
object
Examplegenerated
{ "message": "example", "documentation_url": "example", "url": "example", "status": "example"}Response if the configuration change cannot be made
Basic Error
object
Examplegenerated
{ "message": "example", "documentation_url": "example", "url": "example", "status": "example"}Service unavailable
object
Examplegenerated
{ "code": "example", "message": "example", "documentation_url": "example"}