File tree Expand file tree Collapse file tree 3 files changed +6
-36
lines changed Expand file tree Collapse file tree 3 files changed +6
-36
lines changed Original file line number Diff line number Diff line change @@ -20,11 +20,11 @@ param(
20
20
21
21
[Parameter ()]
22
22
[string ]
23
- $BranchName ,
23
+ $BranchName = " update-psext- $ExtensionVersion " ,
24
24
25
25
[Parameter ()]
26
26
[string ]
27
- $PRDescription
27
+ $PRDescription = " Updates the version of the PowerShell extension in ADS to $ExtensionVersion . `n **Note**: This is an automated PR. "
28
28
)
29
29
30
30
Import-Module " $PSScriptRoot /../GitHubTools.psm1" - Force
@@ -235,16 +235,6 @@ function UpdateGalleryFile
235
235
236
236
$repoLocation = Join-Path ([System.IO.Path ]::GetTempPath()) ' ads-temp-checkout'
237
237
238
- if (-not $BranchName )
239
- {
240
- $BranchName = " update-psext-$ExtensionVersion "
241
- }
242
-
243
- if (-not $PRDescription )
244
- {
245
- $PRDescription = " Updates the version of the PowerShell extension in ADS to $ExtensionVersion .`n **Note**: This is an automated PR."
246
- }
247
-
248
238
$cloneParams = @ {
249
239
OriginRemote = ' https://github.com/rjmholt/AzureDataStudio'
250
240
Destination = $repoLocation
Original file line number Diff line number Diff line change @@ -22,11 +22,11 @@ param(
22
22
23
23
[Parameter ()]
24
24
[string ]
25
- $BranchName ,
25
+ $BranchName = " update-version- $newVersionStr " ,
26
26
27
27
[Parameter ()]
28
28
[string ]
29
- $PRDescription
29
+ $PRDescription = " Updates version strings in vscode-PowerShell to $newVersionStr . `n **Note**: This is an automated PR. "
30
30
)
31
31
32
32
Import-Module - Force " $PSScriptRoot /../FileUpdateTools.psm1"
@@ -237,16 +237,6 @@ $newVersionStr = $NewVersion.ToString()
237
237
$psesVersion = GetVersionFromSemVer - SemVer $NewVersion
238
238
$marketPlaceVersion = GetMarketplaceVersionFromSemVer - SemVer $NewVersion
239
239
240
- if (-not $BranchName )
241
- {
242
- $BranchName = " update-version-$newVersionStr "
243
- }
244
-
245
- if (-not $PRDescription )
246
- {
247
- $PRDescription = " Updates version strings in vscode-PowerShell to $newVersionStr .`n **Note**: This is an automated PR."
248
- }
249
-
250
240
# Finally create the new package.json file
251
241
$newPkgJsonContent = ReplaceStringSegment - String $packageJson - NewSegment $newVersionStr - StartIndex $pkgJsonVersionOffsetSpan.Start - EndIndex $pkgJsonVersionOffsetSpan.End
252
242
SetFileContent - FilePath $paths.packageJson - Value $newPkgJsonContent
Original file line number Diff line number Diff line change @@ -22,11 +22,11 @@ param(
22
22
23
23
[Parameter ()]
24
24
[string ]
25
- $BranchName ,
25
+ $BranchName = " update-pses-version- $NewVersion " ,
26
26
27
27
[Parameter ()]
28
28
[string ]
29
- $PRDescription
29
+ $PRDescription = " Updates PSES to version $NewVersion .**Note**: This is an automated PR. "
30
30
)
31
31
32
32
Import-Module " $PSScriptRoot /../GitHubTools.psm1" - Force
@@ -158,16 +158,6 @@ $paths = @{
158
158
manifest = " $repoLocation /module/PowerShellEditorServices/PowerShellEditorServices.psd1"
159
159
}
160
160
161
- if (-not $BranchName )
162
- {
163
- $BranchName = " update-pses-version-$NewVersion "
164
- }
165
-
166
- if (-not $PRDescription )
167
- {
168
- $PRDescription = " Updates PSES to version $NewVersion .**Note**: This is an automated PR."
169
- }
170
-
171
161
# Clone the PSES repo
172
162
$cloneParams = @ {
173
163
OriginRemote = ' https://github.com/rjmholt/PowerShellEditorServices'
You can’t perform that action at this time.
0 commit comments