Customers have installed this app in at least 31 active instances.
    by Mike Kesslerfor Bitbucket Server 4.0.0 - 4.14.8 and more versions
    Versions available for Bitbucket Server 3.0.0 - 3.11.6
    Mike Kessler supports this app.

    Get support

    Get it nowFree app

    Hook to prevent user from pushing to specified branches based on regex

    Hook to prevent user from pushing to specified branches based on regex

    Configure Blacklisted Branches via Regex

    Pushing disabled for branches that are blacklisted

    Troubleshooting Your Regex

    Each repository has a configurable regex to identify which branches should be blacklisted.

    If the branch name matches for the configured regex pattern, the branch is considered blacklisted and cannot be pushed!

    If an error occurred in executing the regex, it is reported back to the user.

    More details

    This plugin is designed for a workflow where certain branches can only be updated through pull requests. By adding those branches to a blacklist, it will prevent users from pushing directly to it while still allowing anyone to update the blacklisted branch via a Pull Request.

    Note: This is slightly different than the built in feature 'Branch Permissions' in that it still allows for merging.

    User reviews

    Sign in to write a review
    by Evgeniy Molchanov on 2016-03-03
    Thank you for add support v.4.x !
    Was this review helpful?YesNo


    Mike Kessler provides support for this app.

    Vendor support resources


    Find out how this app works.

    See existing Q&A in Atlassian CommunityAsk a question in the Atlassian Community

    Atlassian-hosted discussions connect you to other customers who use this app.


    Version 1.1.0 Bitbucket Server 4.0.0 - 4.14.8 Released 2016-03-03


    Update to support Bitbucket 4.x!


    This version is compatible with Bitbucket 4.x. If you are running Stash 3.x, please use Version 1.0.0 of this plugin.


    1. Log into your Bitbucket instance as an admin.
    2. Click the admin dropdown and choose Add-ons. The Manage add-ons screen loads.
    3. Click Find new add-ons from the left-hand side of the page.
    4. Locate Blacklisted Branches for Bitbucket via search. Results include app versions compatible with your Bitbucket instance.
    5. Click Install to download and install your app.
    6. You're all set! Click Close in the Installed and ready to go dialog.

    To find older Blacklisted Branches for Bitbucket versions compatible with your instance, you can look through our version history page.

    Similar apps