# GitHub Code Quality: Repository Enablement API

DevFeed: [GitHub Code Quality: Repository Enablement API](<https://devfeed.tech/articles/github-code-quality-repository-enablement-api-71758.md>)

Original publisher: [Read original article](<https://github.blog/changelog/2026-05-26-github-code-quality-repository-enablement-api>)

Author: Allison

Published: 2026-05-26T20:35:06Z

Content type: release

Language: en

Sources: [GitHub Changelog](<https://devfeed.tech/sources/github-changelog.md>)

Topics: [Code quality](<https://devfeed.tech/topics/code-quality.md>), [GitHub API](<https://devfeed.tech/topics/github-api.md>), [GitHub](<https://devfeed.tech/topics/github.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [code-quality](<https://devfeed.tech/tags/code-quality.md>), [configuration](<https://devfeed.tech/tags/configuration.md>), [configure](<https://devfeed.tech/tags/configure.md>), [csharp](<https://devfeed.tech/tags/csharp.md>), [enablement](<https://devfeed.tech/tags/enablement.md>), [enterprise](<https://devfeed.tech/tags/enterprise.md>), [github](<https://devfeed.tech/tags/github.md>), [github-com](<https://devfeed.tech/tags/github-com.md>), [go](<https://devfeed.tech/tags/go.md>), [java](<https://devfeed.tech/tags/java.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [languages](<https://devfeed.tech/tags/languages.md>), [preview](<https://devfeed.tech/tags/preview.md>), [public](<https://devfeed.tech/tags/public.md>), [python](<https://devfeed.tech/tags/python.md>), [repositories](<https://devfeed.tech/tags/repositories.md>), [repository](<https://devfeed.tech/tags/repository.md>), [ruby](<https://devfeed.tech/tags/ruby.md>), [runner](<https://devfeed.tech/tags/runner.md>)

## AI overview

GitHub's Repository Enablement API lets you enable or disable Code Quality default setup for an individual repository, choose languages to analyze, and specify the runner type with `PATCH /repos/{owner}/{repo}/code-quality/setup`. `GET` returns the repository's current configuration, including its state, languages, runner type, and analysis schedule. Supported languages are `csharp`, `go`, `java-kotlin`, `javascript-typescript`, `python`, and `ruby`. The feature is in public preview on github.com and is not available on Enterprise Server.

## Source excerpt

You can now programmatically enable and configure GitHub Code Quality on individual repositories using the new Repository Enablement API, available today in public preview. Two new endpoints are now available:...