A named set of GitHub rules for branches, tags or pushes, applied at repository or organisation level. Several can stack and each can be turned on or off, making them the modern replacement for branch protection rules.
Read more: GitHub Docs
In the Ultra Transcenders books
Each book explains Ruleset in context, with comparison tables and the common traps.
Terms in this definition
- Set
Secret permission in Key Vault for writing secrets; some older material refers to it as Create.
- Image tagging
An Image Analysis feature producing single-word tags, each with a confidence score, for actions, scenery, objects and living things in an image.
- Repository
A group of images or artefacts in a container registry that share one name and differ by tag. Names can include slash-separated namespaces, but every repository is handled separately.
- Branch protection
Rules on a branch such as main (branch protection in GitHub, branch policies in Azure Repos) that stop people pushing to it directly and require reviewed pull requests for merges.
Related terms
- Outbound endpoint
Endpoint of DNS Private Resolver, placed in a dedicated subnet, that forwards queries outside Azure as a forwarding ruleset directs. Having no listening IP, it cannot serve as a rule's destination.
- Push ruleset
A GitHub ruleset for private or internal repositories, applying across the entire fork network, that refuses pushes according to file path, path length, file extension or file size.
- Require linear history
Stops merge commits landing on chosen branches, through branch protection or a ruleset, so pull requests have to be squashed or rebased. At least one of those methods has to be enabled for the repository beforehand.
- Require review from Code Owners
A ruleset or branch protection option meaning changes need sign-off from someone who owns the affected files according to CODEOWNERS. One approval from any listed owner is sufficient.
- Restrict code coverage
A preview ruleset rule, which depends on GitHub Code Quality, that prevents merging if a pull request's uploaded line coverage falls under a set percentage or drops further than an allowed margin.