If I have a branch protection rule configured as:
and I have 3 branches:
all matching that rule, and now I want to delete the dev_foo2 branch, the only way to do that is to first delete that branch protection rule, then delete the branch, then reapply the rule. Ouch
According to the API doc, this should remove branch protection from ‘dev_foo2’:
but it does not. It does not return an error, but it also does not remove or disable branch protection for that particular branch.
Is this due to the wildcard regex perhaps? It appears the API is not able to handle wildcards as input, so I am guessing it is somehow related?
Is there a way to remove or disable the branch protection for a specific branch through the API using any other endpoint, for example?
Thanks in advance!