Lotu Radar About

Manage the code coverage ruleset condition with the REST API

GitHub Changelog Developers & Open Source Score 7/10

Summary

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… The post Manage the code coverage ruleset condition with the REST API appeared first on The GitHub Blog .

Original Text

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"> 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.

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

Developer ToolsGitHubSoftware

Lotu Radar provides attributed news summaries and links to the original publisher. Full reporting and copyright remain with the source.