Skip to content

Instantly share code, notes, and snippets.

@mmanela
Created March 20, 2016 06:06
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 mmanela/2f1542672012f708b1c1 to your computer and use it in GitHub Desktop.
Save mmanela/2f1542672012f708b1c1 to your computer and use it in GitHub Desktop.
A workflow for quickly committing changes and submitting a PR to VSTS
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