Skip to content
Rulesets/ProtectedActive

NameProtected
Enforcement statusActive - This ruleset will be enforced

Target branches

Branch targeting criteria

  • Default
  • main

Rules

Which rules should be applied?

Branch rules

Restrict creationsOnly allow users with bypass permission to create matching refs.
Restrict updatesOnly allow users with bypass permission to update matching refs.
Restrict deletionsOnly allow users with bypass permissions to delete matching refs.
Require a pull request before mergingRequire all commits be made to a non-target branch and submitted via a pull request before they can be merged.
Block force pushesPrevent users with push access from force pushing to refs.

Restrictions

Enterprise
Restrict commit metadataRestrict commit author email addresses, committer email addresses, commit message content, and other metadata
Restrict branch namesRestrict branch names
Metadata restrictions
  • Metadata restrictions are available to Enterprise organizations

    Metadata restrictions can ensure that commit messages contain a GitHub issue number, or enforce the format of new branch and tag names.