An small tool that will open the Google Chrome browser to create an new Gitlab merge request. The Gitlab merge request is based on the current branch and current opened GIT directory inside Sourcetree.
composer global require jcid/sourcetree-merge-request-opener
Why was this built? Because Jira has indicated that they will not support Gitlab's own instances. For more information you can read here:
Open Sourcetree preferences
(short key: ⌘ ,
)
Go to the Custom Actions
Add an new Custom Action
with the values
Option | Value |
---|---|
Menu Caption | Create Gitlab merge request |
Shortcut | ⌘ = |
Script to run | ~/.composer/vendor/bin/sourcetree-merge-request-opener |
Parameters | $REPO |
Now you can easily open a Gitlab merge request from the current branch with the set shortcut ⌘ =