Code Monkey home page Code Monkey logo

sourcetree-custom-action-gitlab-merge-request-opener's Introduction

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 ⌘ =

sourcetree-custom-action-gitlab-merge-request-opener's People

Contributors

cafferata avatar cmodijk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

yinxianwei

sourcetree-custom-action-gitlab-merge-request-opener's Issues

Attempting to create an MR on Gitlab throws an error

I followed the setup instructions in the README. When running the shortcut command, I receive an error:

sourcetree-merge-request-opener /Users/michaelflores/Documents/workspace/sam 
Couldn't posix_spawn: error 2
Completed with errors, see above

My settings are:
screen shot 2018-01-18 at 1 44 21 pm
The symlink to the script is here:
screen shot 2018-01-18 at 1 45 45 pm

Error opening merge request on mac

I'm using v1.4 of this software and running catalina on mac. opening the MR returns error:

sourcetree-merge-request-opener /Users/asmith/Documents2/dev/oktaredshift2/terraform 
The file /Users/asmith/Documents2/dev/oktaredshift2/terraform/https/gitlab.mycompany.com/web/infrastructure/terraformmerge_requests/new?merge_request[force_remove_source_branch]=1&merge_request[source_branch]=asmith/oktaredshift2 does not exist.
Completed successfully

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.