You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The `NoStatus` parameter (and `DefaultNoStatus` config value) were deprecated as part of #253 when we stopped showing status except for multi-page requests that exceeded some minimum number of pages.
At that time, `NoStatus` (and `DefaultNoStatus`) were not removed in order to minimize the churn to the module. However, keeping it in is adding unnecessary complexity to the module as we continue to expand what the module can do.
This change removes `NoStatus` (and `DefaultNoStatus`) from the module entirely. The only impact that this may cause is with users who are currently using one (or both) of them. This breaking change impact should be minimal, but its best for the breaking change to be part of the coming release which already has a number of other breaking changes as well, as opposed to having more breaking changes in a successive release.
[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.")]
63
+
[Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSReviewUnusedParameter","", Justification="The Uri parameter is only referenced by Resolve-RepositoryElements which get access to it from the stack via Get-Variable -Scope 1.")]
[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.")]
175
+
[Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSReviewUnusedParameter","", Justification="The Uri parameter is only referenced by Resolve-RepositoryElements which get access to it from the stack via Get-Variable -Scope 1.")]
If provided, this will be used as the AccessToken for authentication with the
280
262
REST Api. Otherwise, will attempt to use the configured value or will run unauthenticated.
281
263
282
-
.PARAMETERNoStatus
283
-
If this switch is specified, long-running commands will run on the main thread
284
-
with no commandline status update. When not specified, those commands run in
285
-
the background, enabling the command prompt to provide status information.
286
-
If not supplied here, the DefaultNoStatus configuration property value will be used.
287
-
288
264
.INPUTS
289
265
GitHub.Branch
290
266
GitHub.Content
@@ -342,7 +318,7 @@ function Add-GitHubAssignee
342
318
DefaultParameterSetName='Elements')]
343
319
[OutputType({$script:GitHubIssueTypeName})]
344
320
[Alias('New-GitHubAssignee')] # Non-standard usage of the New verb, but done to avoid a breaking change post 0.14.0
345
-
[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.")]
321
+
[Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSReviewUnusedParameter","", Justification="The Uri parameter is only referenced by Resolve-RepositoryElements which get access to it from the stack via Get-Variable -Scope 1.")]
if (-not$PSCmdlet.ShouldProcess($Issue,"Add Assignee(s) $($userNames-join',')"))
@@ -462,12 +435,6 @@ function Remove-GitHubAssignee
462
435
If provided, this will be used as the AccessToken for authentication with the
463
436
REST Api. Otherwise, will attempt to use the configured value or will run unauthenticated.
464
437
465
-
.PARAMETERNoStatus
466
-
If this switch is specified, long-running commands will run on the main thread
467
-
with no commandline status update. When not specified, those commands run in
468
-
the background, enabling the command prompt to provide status information.
469
-
If not supplied here, the DefaultNoStatus configuration property value will be used.
470
-
471
438
.INPUTS
472
439
GitHub.Branch
473
440
GitHub.Content
@@ -532,7 +499,7 @@ function Remove-GitHubAssignee
532
499
DefaultParameterSetName='Elements',
533
500
ConfirmImpact="High")]
534
501
[OutputType({$script:GitHubIssueTypeName})]
535
-
[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.")]
502
+
[Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSReviewUnusedParameter","", Justification="The Uri parameter is only referenced by Resolve-RepositoryElements which get access to it from the stack via Get-Variable -Scope 1.")]
536
503
param(
537
504
[Parameter(ParameterSetName='Elements')]
538
505
[string] $OwnerName,
@@ -562,9 +529,7 @@ function Remove-GitHubAssignee
562
529
563
530
[switch] $Force,
564
531
565
-
[string] $AccessToken,
566
-
567
-
[switch] $NoStatus
532
+
[string] $AccessToken
568
533
)
569
534
570
535
begin
@@ -618,7 +583,6 @@ function Remove-GitHubAssignee
0 commit comments