integrations / integrations/terraform-provider-github

[FEAT]: enable repository code-quality setting (PREVIEW)

Open
#2,877 4 comments 10 reactions 0 assignees View on GitHub
Type: Feature
Dominant language
Go
Stars
1.2k
Forks
1k
Avg merge
1d 14h
Merged PRs (30d)
8

Description

### Describe the need

Implements a call to the internal GitHub Enterprise endpoint
POST ///settings/code-quality to toggle the repository’s Code Quality feature.
This mirrors the GitHub UI action for enabling/disabling code scanning or quality checks (e.g., CodeQL), though it’s not part of the public REST API.

Details:

- Endpoint: /settings/code-quality (internal GHE)
- Request body: { "enabled": true }
- Effect: Activates repository-level code quality analysis
- Closest public equivalent: POST /repos/{owner}/{repo}/code-scanning/alerts

### SDK Version

_No response_

### API Version

_No response_

### Relevant log output

```shell

```

### Code of Conduct

- [x] I agree to follow this project's Code of Conduct

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.