GitLab MR Approval Guard
This Extension enforces strict approval rules on GitLab Merge Requests and provides critical warnings when merging into protected branches.
Features
- Approval Enforcement: Prevents the “Merge” button from being clickable unless at least 1 approval is detected.
- Critical Branch Warnings: Displays a prominent, non-dismissible banner at the top of the page when merging into:
main
master
production
development / dev
staging
nightly
The banner reminds you to:
- Get a review.
- Post in related channels.
- Ensure a DevOps team member is present.
Installation
- Clone or download this repository.
Google Chrome
- Open Chrome and navigate to
chrome://extensions/.
- Enable Developer mode (toggle in the top right).
- Click Load unpacked.
- Select the folder where you cloned this repository.
Mozilla Firefox
Installation (Permanent)
- Visit the Firefox Add-ons page.
- Click Add to Firefox.
Debugging (Temporary)
- Open Firefox and navigate to
about:debugging.
- Click on This Firefox in the sidebar.
- Click Load Temporary Add-on….
- Select the
manifest.json file from this repository.
Usage
Navigate to any GitLab Merge Request. The extension will automatically activate.