A Chrome Extension that disables the 'Squash And Merge' button on Github Pull Requests for particular target branches
This is a very requested feature from Github - This issue is tracking it https://github.com/orgs/community/discussions/10809
I've made the mistake too many times, and this might stop me doing it again.
It's analysing the DOM on the Github Web UI, and setting the disabled
attribute on the "Squash and Merge' button to true
. It's going to be brittle, so this is not officially supported, as I have no time for chasing that.
- Clone, or fork, the repo. Take a note of where you put it.
- Navigate to chrome://extensions in Google Chrome
- Select
Load unpacked
Choose thesrc
directory from where the repo is cloned - Still on the 'Chrome Extensions' page, hit the little 'Jigsaw' icon, navigate to 'Github Squash Merge Preventer/Options'
- Set the names of the branches you never want to squash merge to.
Not my problem. Chase Github to build the feature properly