Alert if user is merging a PR without squashing commits for Github
Non-squashed merge ALERT! Extension
When merging a PR in your main branch, Github offers you the options of merging with or without the 'squash commits' option.
There's no way, however to set the merge and 'squash option' as default, without actually merging a PR after manually having selected 'merge and squash'.
This plugin shows a browser confirm popup if the user clicks on the `merge without squash` option, to prevent useless commits messages to end up in your main branches.
Read more
There's no way, however to set the merge and 'squash option' as default, without actually merging a PR after manually having selected 'merge and squash'.
This plugin shows a browser confirm popup if the user clicks on the `merge without squash` option, to prevent useless commits messages to end up in your main branches.
Source Manifest.json
{"update_url": "https://clients2.google.com/service/update2/crx", "name": "Non-squashed merge ALERT!", "version": "1.1", "author": "Raffaele Abramini", "description": "Alert if user is merging a PR without squashing commits for Github", "background": { "scripts": ["dynamicContentScripts.js", "background.js"], "persistent": false }, "permissions": [ "activeTab", "contextMenus", "storage" ], "options_ui": { "page": "options.html", "open_in_tab": false }, "options_page": "options.html", "optional_permissions": ["http://*/*", "https://*/*"], "content_scripts": [ { "matches": ["https://github.com/*/pull/*"], "js": ["contentScript.js"] } ], "manifest_version": 2}
Read more