Use fork of universe
This commit is contained in:
parent
43b52b6933
commit
76ff1dc5cd
|
|
@ -68,7 +68,7 @@ try {
|
||||||
$body = CommitUpdatedVersions $updatedVars $dependencies $depsPath
|
$body = CommitUpdatedVersions $updatedVars $dependencies $depsPath
|
||||||
|
|
||||||
if ($body) {
|
if ($body) {
|
||||||
CreatePR $GithubUpstreamBranch $destinationBranch $body $GithubToken
|
CreatePR "aspnet" $GithubUsername $GithubUpstreamBranch $destinationBranch $body $GithubToken
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -22,6 +22,9 @@ $coreFxRepo = "dotnet/corefx"
|
||||||
$coreSetupVersions = "$githubRaw/$versionsRepo/$versionsBranch/build-info/$coreSetupRepo/master/Latest_Packages.txt"
|
$coreSetupVersions = "$githubRaw/$versionsRepo/$versionsBranch/build-info/$coreSetupRepo/master/Latest_Packages.txt"
|
||||||
|
|
||||||
$tempDir = "$PSScriptRoot/../obj"
|
$tempDir = "$PSScriptRoot/../obj"
|
||||||
|
|
||||||
|
mkdir -Path $tempDir -ErrorAction Ignore
|
||||||
|
|
||||||
$localCoreSetupVersions = "$tempDir/coresetup.packages"
|
$localCoreSetupVersions = "$tempDir/coresetup.packages"
|
||||||
Write-Host "Downloading $coreSetupVersions to $localCoreSetupVersions"
|
Write-Host "Downloading $coreSetupVersions to $localCoreSetupVersions"
|
||||||
Invoke-WebRequest -OutFile $localCoreSetupVersions -Uri $coreSetupVersions
|
Invoke-WebRequest -OutFile $localCoreSetupVersions -Uri $coreSetupVersions
|
||||||
|
|
@ -103,19 +106,18 @@ $depsPath = Resolve-Path "$PSScriptRoot/../build/dependencies.props"
|
||||||
Write-Host "Loading deps from $depsPath"
|
Write-Host "Loading deps from $depsPath"
|
||||||
[xml] $dependencies = LoadXml $depsPath
|
[xml] $dependencies = LoadXml $depsPath
|
||||||
|
|
||||||
$remote = "origin"
|
|
||||||
$baseBranch = "dev"
|
$baseBranch = "dev"
|
||||||
|
|
||||||
$currentBranch = Invoke-Block { & git rev-parse --abbrev-ref HEAD }
|
$currentBranch = Invoke-Block { & git rev-parse --abbrev-ref HEAD }
|
||||||
$destinationBranch = "rybrande/UpgradeDepsTest"
|
$destinationBranch = "rybrande/UpgradeDepsTest"
|
||||||
|
|
||||||
Invoke-Block { & git checkout -tb $destinationBranch "$remote/$baseBranch" }
|
Invoke-Block { & git checkout -tb $destinationBranch "origin/$baseBranch" }
|
||||||
try {
|
try {
|
||||||
$updatedVars = UpdateVersions $variables $dependencies $depsPath
|
$updatedVars = UpdateVersions $variables $dependencies $depsPath
|
||||||
$body = CommitUpdatedVersions $updatedVars $dependencies $depsPath
|
$body = CommitUpdatedVersions $updatedVars $dependencies $depsPath
|
||||||
|
|
||||||
if ($body) {
|
if ($body) {
|
||||||
CreatePR $baseBranch $destinationBranch $body $GithubToken
|
CreatePR "aspnet" $GithubUsername $baseBranch $destinationBranch $body $GithubToken
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
finally {
|
finally {
|
||||||
|
|
|
||||||
|
|
@ -136,11 +136,17 @@ function Ensure-Hub() {
|
||||||
return $hubLocation
|
return $hubLocation
|
||||||
}
|
}
|
||||||
|
|
||||||
function CreatePR([string]$baseBranch, [string]$destinationBranch, [string]$body, [string]$gitHubToken) {
|
function CreatePR(
|
||||||
|
[string]$baseFork,
|
||||||
|
[string]$headFork,
|
||||||
|
[string]$baseBranch,
|
||||||
|
[string]$destinationBranch,
|
||||||
|
[string]$body,
|
||||||
|
[string]$gitHubToken) {
|
||||||
$hubLocation = Ensure-Hub
|
$hubLocation = Ensure-Hub
|
||||||
|
|
||||||
Invoke-Block { git push -f https://$gitHubToken@github.com/aspnet/Universe.git $destinationBranch }
|
Invoke-Block { git push -f https://$gitHubToken@github.com/$headFork/Universe.git $destinationBranch }
|
||||||
& $hubLocation pull-request -f -b $baseBranch -h $destinationBranch -m $body
|
& $hubLocation pull-request -f -b "${baseFork}:$baseBranch" -h "${headFork}:$destinationBranch" -m $body
|
||||||
}
|
}
|
||||||
|
|
||||||
function Set-GithubInfo(
|
function Set-GithubInfo(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue