Skip to content
Rulesets/MAINActive

NameMAIN
Enforcement statusActive - This ruleset will be enforced

Target branches

Branch targeting criteria

  • Default
  • All branches
  • Laksan99
  • 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 linear historyPrevent merge commits from being pushed to 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.
Require code scanning resultsChoose which tools must provide code scanning results before the reference is updated. When configured, code scanning must be enabled and have results for both the commit and the reference being updated.
  • Required tools and alert thresholds
    • CodeQL
      Security alerts threshold:
      All
      Alerts threshold:
      All
    Tools that must provide code scanning results for this rule to pass. Learn more about enabling code scanning.
Require code quality resultsChoose which severity levels of code quality results should block pull request merges. When configured, a code quality analysis must be done on the pull request before the changes can be merged.
  • Severity: allThe lowest severity level at which code quality reviews need to be resolved before commits can be merged.
Automatically request Copilot code reviewRequest Copilot code review for new pull requests automatically if the author has access to Copilot code review and their premium requests quota has not reached the limit.