MR Automator
MR Automator helps you speed up your GitLab workflow by automatically generating Merge Request links based on your branch name conventions.
Designed for workflows where feature branches follow a strict naming pattern (e.g., KHA-[feature]-dev).
Features
- One-Click MR Creation: Automatically opens two browser tabs with pre-filled Merge Request pages.
- Current Branch → Development Branch (e.g.,
feature → dev)
- Development Branch → Staging/Review Environment (e.g.,
dev → staging)
- Branch Name Parsing: Extracts the feature ID/Name from your current branch using Regex.
- Configurable: Customize the GitLab URL and the Regex pattern to fit your team's convention.
Usage
- Checkout your feature branch (e.g.,
KHA-LoginFix-dev).
- Open the Command Palette (
Cmd+Shift+P / Ctrl+Shift+P).
- Run command:
MR Automator: Open Merge Requests.
- The extension will open your default browser with the MR creation pages.
Extension Settings
This extension contributes the following settings:
mrAutomator.gitlabUrl: The base URL of your GitLab instance (default: https://gitlab.com).
mrAutomator.nameRegex: The Regex used to extract the feature name. Must contain one capture group ().
- Default:
KHA-(.+?)-dev matching branches like KHA-MyFeature-dev.
Requirements
- A project with a git repository.
- GitLab as the remote (or a compatible remote URL).
Known Issues
- If your branch does not match the configured Regex, the command will show an error.
Release Notes
0.0.1
Initial release of MR Automator.
| |