megachangelog
Feature

Manage code coverage ruleset condition with REST API

The REST API now supports managing the Restrict code coverage repository ruleset option, providing programmatic control over code coverage enforcement in addition to UI support.

You can now use the generally available REST API to manage the Restrict code coverage repository ruleset option, in addition to the existing UI support.

This ruleset lets you enforce a minimum code coverage percentage based on line coverage or set a maximum tolerable coverage drop for a pull request. Previously, configuring this rule required using the web interface. Now you can create, update, and read this ruleset option programmatically, making it easier to manage code coverage requirements consistently across many repositories or as part of your existing infrastructure-as-code workflows.

To use this rule, your repository must have GitHub Code Quality enabled and code coverage uploads configured. It’s available on GitHub Enterprise Cloud and GitHub Team, including GitHub Enterprise Cloud with data residency. It isn’t available on GitHub Enterprise Server.

Learn more about available rules for rulesets and the REST API endpoints for rules.

social

The post Manage the code coverage ruleset condition with the REST API appeared first on The GitHub Blog.

apirestrulesetscode-coverage

Source: original entry ↗

More from GitHub

Follow GitHub to get its new changes in your feed and email digest.

Feature

GitHub App improvements for least privilege and management

GitHub has released improvements to GitHub Apps that enable developers to migrate away from classic personal access tokens, enhance app management capabilities, and request fewer sensitive permissions for better security.

github-appsauthsecuritypermissionspat
Announcement

Gemini 4 Argon now available in GitHub Copilot

Google's Gemini 4 Argon frontier model is now generally available in GitHub Copilot, designed for complex coding, agentic, and reasoning tasks to enhance developer productivity.

copilotaimodelsannouncement
Feature

Audit GitHub Code Quality finding dismissals and reopenings

Users can now review manual dismissals and reopenings of GitHub Code Quality findings in their organization or enterprise audit log, enabling better tracking and governance of code quality decisions.

auditcode-qualitygovernancesecurity
See all GitHub changes →