Customers have installed this add-on in at least 19 active instances.
    by Sean Gillespiefor Bitbucket Server 3.3.0 - 3.11.6
    This add-on isn't formally supported, but you can ask a question via Atlassian Answers.

    Ask a question

    Sean Gillespie supports this add-on.

    Get support

    Get it nowFree add-on

    Protect specific paths from being updated by non-repository-admins

    Protect specific paths from being updated by non-repository-admins

    Configuration Options

    Protects against pushes

    Protects against pull requests

    Protect Paths Hook is fully configurable

    Rejected pushes display descriptive error messages.

    Only administrators can merge pull requests.

    More details

    A plugin for Atlassian Stash that protects paths from being pushed by non-administrators (for projects).

    Configuration Options:

    • Specify path(s) using regular expressions
    • Protect all branches, or filter based on regular expression(s)
    • Exclude user(s)

    Check https://github.com/sgillespie/protect-paths-stash-hook for more information.

    User reviews

    (0)Sign in to write a review »

    There are no reviews yet. Be the first to review this add-on.



    Sean Gillespie supports Protect Paths Hook. You can ask a support question via Atlassian Answers to get help.

    Ask a question


    Version 0.9.0 Bitbucket Server 3.3.0 - 3.11.6 Released 2014-10-27


    Initial Release


    This is the first release. It currently supports the following features:

    • Protect against pull requests and pushes
    • Specify paths to protect with regular expression(s)
    • Protect branches based on a filter
      • All Branches
      • Include Branches with regular expression(s)
      • Exclude Branches with regular expressions(s)
    • Exclude 0 or more users


    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 Protect Paths Hook via search. Results include add-on versions compatible with your Bitbucket instance.
    5. Click Install to download and install your add-on.
    6. You're all set! Click Close in the Installed and ready to go dialog.

    Similar add-ons