capabilities.work

Create a branch restriction rule

One step with Bitbucket. We can help you get access.

Get something done

Create a branch restriction rule

with Bitbucket · Software Construction Management

Use Bitbucket: its Bitbucket Branch restrictions API lets you create a branch restriction rule in a single step (POST /repositories/{workspace}/{repo_slug}/branch-restrictions). capabilities.work can help you get signed up and connected.

  • How do I stop people force-pushing to main?
  • Can I require approvals before merging into release branches?
  • What kinds of branch restriction rules can I create?
Say it to your AI assistant
  • Add a {kind} restriction on branches matching {pattern} in {workspace}/{repo_slug}.
  • Protect branch pattern {pattern} in {workspace}/{repo_slug} from deletion.
For your developer

POST /repositories/{workspace}/{repo_slug}/branch-restrictions in Bitbucket Branch restrictions API. Full spec on APIs.io.