Created
March 20, 2016 06:06
-
-
Save mmanela/2f1542672012f708b1c1 to your computer and use it in GitHub Desktop.
A workflow for quickly committing changes and submitting a PR to VSTS
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
function fastFix($branchName, $title) { | |
if((-not $branchName) -or (-not $title)) { | |
throw "You must specify branchName and title" | |
return | |
} | |
Write-Host "Checking out $branchName" | |
git checkout -b $branchName | |
Write-Host "Adding all files and committing" | |
git commit -am $title | |
Write-Host "Pushing to server" | |
git push -u origin $branch | |
Write-Host "Submit Pull Request" | |
Submit-PullRequest -Title $title -Description $title -SourceBranch $branch -TargetBranch master -Project MyProject -Account MyAccount -Repository MyRepo | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment