Repository: libcloud Updated Branches: refs/heads/trunk ed0b6d531 -> 5b089e11e
PowerShell script for merging PRs Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/5b089e11 Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/5b089e11 Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/5b089e11 Branch: refs/heads/trunk Commit: 5b089e11e26ae9af9cffa27ce9870e6778249e25 Parents: ed0b6d5 Author: anthony-shaw <anthonys...@apache.org> Authored: Sun Apr 17 08:45:19 2016 +1000 Committer: anthony-shaw <anthonys...@apache.org> Committed: Sun Apr 17 08:45:19 2016 +1000 ---------------------------------------------------------------------- contrib/apply-patch.ps1 | 9 +++++++++ 1 file changed, 9 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/libcloud/blob/5b089e11/contrib/apply-patch.ps1 ---------------------------------------------------------------------- diff --git a/contrib/apply-patch.ps1 b/contrib/apply-patch.ps1 new file mode 100644 index 0000000..aa99dc5 --- /dev/null +++ b/contrib/apply-patch.ps1 @@ -0,0 +1,9 @@ +param ($pull_request) +Write-Host "Applying patch ${pull_request}" + +git checkout trunk +Invoke-WebRequest https://patch-diff.githubusercontent.com/raw/apache/libcloud/pull/${pull_request}.patch -OutFile ${env:temp}/${pull_request}.patch +git am ${env:temp}/${pull_request}.patch +$last_message = git log -1 --pretty=%B +$new_message = $last_message+"\n Closes ${pull_request}" +git commit --amend -m $new_message