Add a branch restriction rule
One step with Atlassian. We can help you get access.
Get something done
Add a branch restriction rule
with Atlassian · Software Construction Management
Use Atlassian: its Atlassian Bitbucket Branch Restrictions API lets you add 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 from force-pushing to main?
- Can I require approvals or completed tasks before merging into a branch?
Say it to your AI assistant
- Create a branch restriction in {workspace}/{repo_slug} allowing only users {users} to push.
- Add a branch restriction rule to repository {repo_slug} in {workspace} for groups {groups}.
For your developer
POST /repositories/{workspace}/{repo_slug}/branch-restrictions in Atlassian Bitbucket Branch Restrictions API. Full spec on APIs.io.