Skip to content

Instantly share code, notes, and snippets.

@yohayg
Created December 20, 2017 15:13
Show Gist options
  • Save yohayg/35beb6da85c5e0205776f8ae09313ed3 to your computer and use it in GitHub Desktop.
Save yohayg/35beb6da85c5e0205776f8ae09313ed3 to your computer and use it in GitHub Desktop.
Open Gitlab merge request URL (For use in SourceTree custom actions)
#!/bin/sh
project=$(basename $1)
branch=$(cd $1 ;git name-rev --name-only HEAD)
open "https://gitlab.marketo.org/RTP/$project/merge_requests/new?merge_request%5Bsource_branch%5D=$branch&merge_request%5Btarget_branch%5D=master&merge_request%5Btitle%5D=$branch%20-%20"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment