Wallogit.com
2017 © Pedro Peláez
An Sourcetree custom action for opening an Gitlab merge request window in the Google Chrome browser
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., (*1)
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: - https://jira.atlassian.com/browse/SRCTREE-1845, (*2)
Open Sourcetree preferences (short key: ⌘ ,), (*3)
, (*4)
Go to the Custom Actions, (*5)
, (*6)
Add an new Custom Action with the values, (*7)
| Option | Value |
|---|---|
| Menu Caption | Create Gitlab merge request |
| Shortcut | ⌘ = |
| Script to run | ~/.composer/vendor/bin/sourcetree-merge-request-opener |
| Parameters | $REPO |
, (*8)
Now you can easily open a Gitlab merge request from the current branch with the set shortcut ⌘ =, (*9)