Skip to content

Instantly share code, notes, and snippets.

@peterj
Created July 10, 2017 17:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save peterj/b650222226a28270037d95b5dc57f52b to your computer and use it in GitHub Desktop.
Save peterj/b650222226a28270037d95b5dc57f52b to your computer and use it in GitHub Desktop.
Script for creating PR on VSTS (used in SourceTree as a custom action)
#!/bin/bash
targetBranch="master"
origin=$(git remote get-url origin)
branch=$(git rev-parse --abbrev-ref HEAD)
prurl="$origin/pullrequestcreate?sourceRef=$branchName&targetRef=$targetBranch"
open $prurl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment