Skip to content

An Sourcetree custom action for opening an Gitlab merge request window in the Google Chrome browser

License

Notifications You must be signed in to change notification settings

JCID/sourcetree-custom-action-gitlab-merge-request-opener

Repository files navigation

Intro

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.

Installation

composer global require jcid/sourcetree-merge-request-opener

Why?

Why was this built? Because Jira has indicated that they will not support Gitlab's own instances. For more information you can read here:

Sourcetree configuration

Open Sourcetree preferences (short key: ⌘ ,)

Sourcetree preferences

Go to the Custom Actions

Sourcetree 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

Sourcetree custom action configuration

Now you can easily open a Gitlab merge request from the current branch with the set shortcut ⌘ =

About

An Sourcetree custom action for opening an Gitlab merge request window in the Google Chrome browser

Topics

Resources

License

Stars

Watchers

Forks

Languages