@@ -243,23 +243,7 @@ $psesChangelogSection = Get-GitCommit @psesGetCommitParams |
243
243
244
244
Write-Host " PSES CHANGELOG:`n`n $psesChangelogSection `n`n "
245
245
246
- $cloneLocation = Join-Path ([System.IO.Path ]::GetTempPath()) " ${psesRepoName} _changelogupdate"
247
-
248
- $cloneParams = @ {
249
- OriginRemote = " https://github.com/$FromFork /$psesRepoName "
250
- Destination = $cloneLocation
251
- CheckoutBranch = $branchName
252
- CloneBranch = $PsesBaseBranch
253
- Clobber = $true
254
- Remotes = @ { ' upstream' = " https://github.com/$TargetFork /$vscodeRepoName " }
255
- }
256
- Copy-GitRepository @cloneParams - Verbose:$VerbosePreference
257
-
258
- UpdateChangelogFile - NewSection $psesChangelogSection - Path " $cloneLocation /$ChangelogName "
259
-
260
- Submit-GitChanges - RepositoryLocation $cloneLocation - File $GalleryFileName - Branch $branchName - Message " Update CHANGELOG for $ReleaseName " - Verbose:$VerbosePreference
261
-
262
- # endregion
246
+ # endregion PSES Changelog
263
247
264
248
# region vscode-PowerShell Changelog
265
249
$psesChangelogPostamble = $psesChangelogSection -split " `n "
@@ -273,7 +257,6 @@ $psExtGetCommitParams = @{
273
257
RepositoryPath = $PSExtensionRepositoryPath
274
258
Verbose = $VerbosePreference
275
259
}
276
-
277
260
$psextChangelogSection = Get-GitCommit @psExtGetCommitParams |
278
261
Get-ChangeInfoFromCommit - GitHubToken $GitHubToken - Verbose:$VerbosePreference |
279
262
Skip-IgnoredChange @ignore - Verbose:$VerbosePreference |
@@ -282,28 +265,29 @@ $psextChangelogSection = Get-GitCommit @psExtGetCommitParams |
282
265
283
266
Write-Host " vscode-PowerShell CHANGELOG:`n`n $psextChangelogSection `n`n "
284
267
285
- $cloneLocation = Join-Path ([System.IO.Path ]::GetTempPath()) " ${vscodeRepoName} _changelogupdate"
268
+ # endregion vscode-PowerShell Changelog
269
+
270
+ # region PRs
271
+
272
+ return
273
+
274
+ # PSES PR
275
+ $cloneLocation = Join-Path ([System.IO.Path ]::GetTempPath()) " ${psesRepoName} _changelogupdate"
286
276
287
277
$cloneParams = @ {
288
- OriginRemote = " https://github.com/$FromFork /$vscodeRepoName "
278
+ OriginRemote = " https://github.com/$FromFork /$psesRepoName "
289
279
Destination = $cloneLocation
290
280
CheckoutBranch = $branchName
291
- CloneBranch = $PSExtensionBaseBranch
281
+ CloneBranch = $PsesBaseBranch
292
282
Clobber = $true
293
283
Remotes = @ { ' upstream' = " https://github.com/$TargetFork /$vscodeRepoName " }
294
- PullUpstream = $true
295
284
}
296
285
Copy-GitRepository @cloneParams - Verbose:$VerbosePreference
297
286
298
- UpdateChangelogFile - NewSection $psextChangelogSection - Path " $cloneLocation /$ChangelogName "
299
-
300
- Submit-GitChanges - RepositoryLocation $cloneLocation - File $GalleryFileName - Branch $branchName - Message " Update CHANGELOG for $ReleaseName " - Verbose:$VerbosePreference
301
-
302
- # endregion vscode-PowerShell Changelog
287
+ UpdateChangelogFile - NewSection $psesChangelogSection - Path " $cloneLocation /$ChangelogName "
303
288
304
- # region PRs
289
+ Submit-GitChanges - RepositoryLocation $cloneLocation - File $GalleryFileName - Branch $branchName - Message " Update CHANGELOG for $PsesReleaseName " - Verbose: $VerbosePreference
305
290
306
- # PSES PR
307
291
$prParams = @ {
308
292
Organization = $TargetFork
309
293
Repository = $psesRepoName
@@ -316,6 +300,23 @@ $prParams = @{
316
300
New-GitHubPR @prParams - Verbose:$VerbosePreference
317
301
318
302
# vscode-PowerShell PR
303
+ $cloneLocation = Join-Path ([System.IO.Path ]::GetTempPath()) " ${vscodeRepoName} _changelogupdate"
304
+
305
+ $cloneParams = @ {
306
+ OriginRemote = " https://github.com/$FromFork /$vscodeRepoName "
307
+ Destination = $cloneLocation
308
+ CheckoutBranch = $branchName
309
+ CloneBranch = $PSExtensionBaseBranch
310
+ Clobber = $true
311
+ Remotes = @ { ' upstream' = " https://github.com/$TargetFork /$vscodeRepoName " }
312
+ PullUpstream = $true
313
+ }
314
+ Copy-GitRepository @cloneParams - Verbose:$VerbosePreference
315
+
316
+ UpdateChangelogFile - NewSection $psextChangelogSection - Path " $cloneLocation /$ChangelogName "
317
+
318
+ Submit-GitChanges - RepositoryLocation $cloneLocation - File $GalleryFileName - Branch $branchName - Message " Update CHANGELOG for $PSExtensionReleaseName " - Verbose:$VerbosePreference
319
+
319
320
$prParams = @ {
320
321
Organization = $TargetFork
321
322
Repository = $vscodeRepoName
0 commit comments