Today GitHub announced the public beta of repository rules, the next evolution of branch protections to make repositories more secure and compliant at scale. Rules allow easy definition of protections for branches and tags, as well as enforcement across your organization. The ability to define rulesets is central to rules, which is a collection of rules enforced together, and with options to select the default branch or use patterns to apply to different branch and tag naming styles. The ruleset page is the central location to view and manage all the rules for a repository. Visitors with read access to a repository can view its rules and what they mean, and learn how to enable and use rules by checking out the documentation. In addition, the ability to mark a threaded reply as the answer to a question was introduced to GitHub Discussions, making it clear to readers where the real answer to an original question may live. Join the conversation in the repository rules public beta discussion to improve repository rules.