Github API is not applying branch protection for branch pattern

I am not able to use github api to add branch protection for a branch that does not exists or a branch with wildcard.

Wanted to automate adding restrictions for all release branches (release/*) for all repos. Seems it does not work today and its a pain to add it manually as we have 100s of repos.


Is there a way to do this automagically :slight_smile: ?? This issue was already posted by many people back in 2018 but till now there no such feature which is sad.

1 Like