Created
July 10, 2017 17:45
-
-
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)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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