Bitbucket Pipelines Branch restrictions API
Repository owners and administrators can set branch management rules on a repository that control what can be pushed by whom. Through these rules, you can enforce a project or team workflow. For example, owners or administrators can: * Limit push powers * Prevent branch deletion * Prevent history re-writes (Git only)