Skip to content

Commit 86bba1f

Browse files
committed
Remove default parameter set to fix PS7 issues
1 parent 640306c commit 86bba1f

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

GitHubReleases.ps1

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,6 @@ filter New-GitHubRelease
309309
#>
310310
[CmdletBinding(
311311
SupportsShouldProcess,
312-
DefaultParameterSetName='Elements',
313312
PositionalBinding = $false)]
314313
[OutputType({$script:GitHubReleaseTypeName})]
315314
param(
@@ -480,7 +479,6 @@ filter Set-GitHubRelease
480479
#>
481480
[CmdletBinding(
482481
SupportsShouldProcess,
483-
DefaultParameterSetName='Elements',
484482
PositionalBinding = $false)]
485483
[OutputType({$script:GitHubReleaseTypeName})]
486484
param(
@@ -639,7 +637,6 @@ filter Remove-GitHubRelease
639637
#>
640638
[CmdletBinding(
641639
SupportsShouldProcess,
642-
DefaultParameterSetName='Elements',
643640
PositionalBinding = $false,
644641
ConfirmImpact='High')]
645642
[Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSReviewUnusedParameter", "", Justification="One or more parameters (like NoStatus) are only referenced by helper methods which get access to it from the stack via Get-Variable -Scope 1.")]
@@ -783,9 +780,7 @@ filter Get-GitHubReleaseAsset
783780
Downloads the asset 1234567890 to 'c:\users\PowerShellForGitHub\downloads\asset.zip' and
784781
overwrites the file that may already be there.
785782
#>
786-
[CmdletBinding(
787-
DefaultParameterSetName='Elements-List',
788-
PositionalBinding = $false)]
783+
[CmdletBinding(PositionalBinding = $false)]
789784
[OutputType({$script:GitHubReleaseAssetTypeName})]
790785
[Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSReviewUnusedParameter", "", Justification="One or more parameters (like NoStatus) are only referenced by helper methods which get access to it from the stack via Get-Variable -Scope 1.")]
791786
param(
@@ -1023,7 +1018,6 @@ filter New-GitHubReleaseAsset
10231018
#>
10241019
[CmdletBinding(
10251020
SupportsShouldProcess,
1026-
DefaultParameterSetName='Elements',
10271021
PositionalBinding = $false)]
10281022
[OutputType({$script:GitHubReleaseAssetTypeName})]
10291023
[Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSReviewUnusedParameter", "", Justification="One or more parameters (like NoStatus) are only referenced by helper methods which get access to it from the stack via Get-Variable -Scope 1.")]
@@ -1225,7 +1219,6 @@ filter Set-GitHubReleaseAsset
12251219
#>
12261220
[CmdletBinding(
12271221
SupportsShouldProcess,
1228-
DefaultParameterSetName='Elements',
12291222
PositionalBinding = $false)]
12301223
[OutputType({$script:GitHubReleaseAssetTypeName})]
12311224
[Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSReviewUnusedParameter", "", Justification="One or more parameters (like NoStatus) are only referenced by helper methods which get access to it from the stack via Get-Variable -Scope 1.")]
@@ -1362,7 +1355,6 @@ filter Remove-GitHubReleaseAsset
13621355
#>
13631356
[CmdletBinding(
13641357
SupportsShouldProcess,
1365-
DefaultParameterSetName='Elements',
13661358
PositionalBinding = $false,
13671359
ConfirmImpact='High')]
13681360
[Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSReviewUnusedParameter", "", Justification="One or more parameters (like NoStatus) are only referenced by helper methods which get access to it from the stack via Get-Variable -Scope 1.")]

0 commit comments

Comments
 (0)