Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Repository Rules #644

Closed
github-product-roadmap opened this issue Feb 22, 2023 · 2 comments
Closed

Repository Rules #644

github-product-roadmap opened this issue Feb 22, 2023 · 2 comments
Labels
all Product SKU: All Enterprise Product SKU: GitHub Enterprise preview Feature phase: Preview repositories Feature: Github Repositories server Available on Server shipped Shipped

Comments

@github-product-roadmap
Copy link
Collaborator

Summary

Repository rules are the evolution of GitHub's current branch protection rules, which will allow you to operate repository protections at scale with confidence and clarity.

GitHubScreenShot-Google Chrome-30-01-2023-000541

Intended outcome

This is a new way to manage rules with a new user experience allowing for the flexible targeting of branches, rule visibility for all repository members, and for GitHub Enterprise customers, the ability to create and enforce rules at an organization level.

How will it work?

Repository rulesets

  • All repository members can read all active rulesets on a repository.
  • Repositories support multiple rulesets.
  • Rulesets can be layered, allowing for multiple branches to have rules applied from different rulesets.
    • E.g., one ruleset for the main branch requires 2 pull request reviewers, and one ruleset for all branches requires status checks. In this case, main would require status checks and 2 pull request reviewers.
  • Repository admins and authorized users can create a repository ruleset, which includes the following activities:
    • General: Name the ruleset, activate or disable the ruleset, configure who can bypass the ruleset's rules, or delete the ruleset.
    • Targeting: Select the branch(es) where rules apply. Choose from all branches, the default branch, or use wildcard matches. You can also exclude branches from matching.
    • Rules: Configure existing branch protections.

GitHub Enterprise

GitHub Enterprise accounts will have the following additional capabilities:

  • Create and enforce rulesets at the organization level for all or select repositories based on pattern matching of repository names.
  • Apply new rules:
    • Commit messages: Prevent commits to a branch based on commit message requirements.
    • Branch and tag names: Ensure branches and tags meet naming conventions.
    • File restrictions: Limit commits to a branch based on requirements for a file's name, path, and size.
  • Set a ruleset to Evaluation mode, which allows "dry-runs" of rulesets to understand their effect before they are enforced.
@github github locked and limited conversation to collaborators Feb 22, 2023
@github-product-roadmap github-product-roadmap added all Product SKU: All preview Feature phase: Preview Enterprise Product SKU: GitHub Enterprise repositories Feature: Github Repositories server Available on Server labels Feb 22, 2023
@ankneis ankneis moved this to Q2 2023 – Apr-Jun in GitHub Public Roadmap Feb 22, 2023
@ankneis
Copy link
Collaborator

ankneis commented Apr 17, 2023

🚢 This has shipped: https://github.blog/changelog/2023-04-17-introducing-repository-rules-public-beta/. Leaving open to track for GHES release.

@ankneis
Copy link
Collaborator

ankneis commented Dec 12, 2023

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
all Product SKU: All Enterprise Product SKU: GitHub Enterprise preview Feature phase: Preview repositories Feature: Github Repositories server Available on Server shipped Shipped
Projects
Status: No status
Development

No branches or pull requests

2 participants