Showing results for 
Search instead for 
Did you mean: 
Ground Controller Lvl 1
Message 1 of 4

REST API v3: wildcard branch protection

Solved! Go to Solution.

Is it possible to GET/SET wildcard branch protection using the API?  Querying does not seem to work with wildcards at least, although branches being matched are individually shown as being protected, it doesn't seem possible to tell the difference between ones matching a wildcard, and those with specific settings.

3 Replies
Message 2 of 4

Re: REST API v3: wildcard branch protection

Hi @beiriannydd,


Thanks for being here and for asking this question. At this time, this isn't supported. However, we're always working to improve, and we consider every suggestion we receive. I've logged this in our internal feature request list. Though I can't guarantee anything or share a timeline for this, I can tell you that it's been shared with the appropriate teams for consideration.


Please let me know if you have any other questions.



Mark helpful posts with Accept as Solution to help other users locate important info. Don't forget to give Kudos for great content!

Ground Controller Lvl 1
Message 3 of 4

Re: REST API v3: wildcard branch protection

Thanks @nadiajoyce . A use case here would be using the terraform github provider.

Copilot Lvl 2
Message 4 of 4

Re: REST API v3: wildcard branch protection

Unfortunate that the api support didn't come in advance of or with the ux support... makes it hard to take advantage of when programatically creating the repositories on behalf of someone who wont have rights to create the restrictions.  Hopefully it will be coming in the not too distant future.