Skip to content

Branch Protection on multiple branches #22037

Discussion options

You must be logged in to vote

Hey y'all,

Wanted to follow up on the discussion here, we recently introduced a beta of repository rules. One feature is it does allow for defining multiple branch or tag patterns per ruleset. It's still not RegEx or FNM_EXTGLOB but via the UI and APIs you can define multiple patterns for the same set of rules.

UI example:

API example:

  "conditions": {
    "ref_name": {
      "include": [
        "refs/heads/main",
        "refs/heads/master"
      ],
      "exclude": [
        "refs/heads/dev*"
      ]
    }

Replies: 24 comments 8 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@dominictobias
Comment options

@patrick-knight
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@behitesh
Comment options

@mtmelvin
Comment options

@tylerlaprade
Comment options

@ysma500
Comment options

@EstebanMongui
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@patrick-knight
Comment options

Answer selected by patrick-knight
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet