You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@reef.apache.org by Markus Weimer <ma...@weimo.de> on 2015/06/28 00:24:27 UTC
Checking out a REEF PR into a branch without adding the remote
Hi,
I just wrote this powershell function for my own use, and thought it
might be helpful for others:
---
function REEF-Checkout-PullRequest{
param
(
[Parameter(Mandatory=$true, HelpMessage='The pull request number')]
[string]$PR,
[Parameter(Mandatory=$true, HelpMessage='The branch to check the
PR out into')]
[string]$B
)
# The name of the remote https://github.com/apache/incubator-reef
$APACHE_REEF_MIRROR_REMOTE = 'origin'
Invoke-Expression "git fetch $APACHE_REEF_MIRROR_REMOTE
pull/$PR/head:$B"
}
---
Extra credit if someone manages to use the GitHub API to deduce the PR
number from the JIRA ID and vice versa :-)
Markus