Skip to content

Commit c1f66c3

Browse files
committed
Work CI-CD
- Fix base branch for VS extension PR with updates. ***NO_CI***
1 parent f435ea7 commit c1f66c3

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

azure-pipelines/update-dependents.ps1

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,10 +118,9 @@ if ($repoStatus -ne "")
118118
git -c http.extraheader="AUTHORIZATION: $auth" push --set-upstream origin $newBranchName > $null
119119

120120
# start PR
121-
# we are hardcoding to 'develop' branch to have a fixed one
122-
# this is very important for tags (which don't have branch information)
121+
# we are pointing to the $repoMainBranch
123122
# considering that the base branch can be changed at the PR ther is no big deal about this
124-
$prRequestBody = @{title="$prTitle";body="$commitMessage";head="$newBranchName";base="develop"} | ConvertTo-Json
123+
$prRequestBody = @{title="$prTitle";body="$commitMessage";head="$newBranchName";base="$repoMainBranch"} | ConvertTo-Json
125124
$githubApiEndpoint = "https://api.github.com/repos/nanoframework/nf-Visual-Studio-extension/pulls"
126125
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
127126

0 commit comments

Comments
 (0)