Release

May 26, 20261 Minute Read

GitHub Code Quality: Repository Enablement API

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:

  • PATCH /repos/{owner}/{repo}/code-quality/setup: Enable or disable Code Quality default setup for a repository, configure the languages to analyze, and specify the runner type.
  • GET /repos/{owner}/{repo}/code-quality/setup: Retrieve the current Code Quality configuration for a repository, including state, languages, runner type, and analysis schedule.

Supported languages include csharp, go, java-kotlin, javascript-typescript, python, and ruby.

This feature is available in public preview on github.com and is not available on Enterprise Server.

To learn more about GitHub Code Quality, check out the documentation for code quality.

Subscribe to our developer newsletter

Discover tips, technical guides, and best practices in our biweekly newsletter just for devs.

By submitting, I agree to let GitHub and its affiliates use my information for personalized communications, targeted advertising, and campaign effectiveness. See the GitHub Privacy Statement for more details.

GitHub Code Quality: Repository Enablement API - GitHub Changelog