Skip to content

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

@thisispr

Description

@thisispr

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

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: TriageThis is being looked at and prioritizedType: FeatureNew feature or request

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions