Wiki

Clone wiki

blacklisted_branches / Home

Hi, welcome to the wiki for Blacklisted Branches for Bitbucket Server by mfk_productions.

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.

This is very easy to use. For any repository, you can enable the Blacklisted Branches hook and specify a regex that identifies which branches are considered 'blacklisted'. If a branch name matches the regex pattern, pushing to it is disabled.

In this configuration example, any branch that starts with 'master' or 'test' is considered blacklisted:

Screen Shot 2016-03-02 at 11.52.40 PM.png

If a branch that is blacklisted is pushed, an error message (with the Fail Whale!) is displayed to the user: Screen Shot 2016-03-02 at 11.51.11 PM.png

For another mfk_productions plugin, try Comment Workflow

mfk.png

Hope you enjoy this!

Updated