GitHub Code Quality: Repository Enablement API
Source: GitHub Changelog
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.
Endpoints
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: csharp, go, java-kotlin, javascript-typescript, python, 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, see the documentation for code quality.