A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/microsoft/PowerShellForGitHub/commit/db111559f9844e9a30b666ec069a5dc462643c63 below:

Removing NoStatus from the module (#274) · microsoft/PowerShellForGitHub@db11155 · GitHub

@@ -26,12 +26,6 @@ filter Get-GitHubAssignee

26 26

If provided, this will be used as the AccessToken for authentication with the

27 27

REST Api. Otherwise, will attempt to use the configured value or will run unauthenticated.

28 28 29 -

.PARAMETER NoStatus

30 -

If this switch is specified, long-running commands will run on the main thread

31 -

with no commandline status update. When not specified, those commands run in

32 -

the background, enabling the command prompt to provide status information.

33 -

If not supplied here, the DefaultNoStatus configuration property value will be used.

34 - 35 29

.INPUTS

36 30

GitHub.Branch

37 31

GitHub.Content

@@ -66,7 +60,7 @@ filter Get-GitHubAssignee

66 60

#>

67 61

[CmdletBinding(DefaultParameterSetName = 'Elements')]

68 62

[OutputType({$script:GitHubUserTypeName})]

69 -

[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.")]

70 64

param(

71 65

[Parameter(ParameterSetName='Elements')]

72 66

[string] $OwnerName,

@@ -81,9 +75,7 @@ filter Get-GitHubAssignee

81 75

[Alias('RepositoryUrl')]

82 76

[string] $Uri,

83 77 84 -

[string] $AccessToken,

85 - 86 -

[switch] $NoStatus

78 +

[string] $AccessToken

87 79

)

88 80 89 81

Write-InvocationLog

@@ -103,7 +95,6 @@ filter Get-GitHubAssignee

103 95

'AccessToken' = $AccessToken

104 96

'TelemetryEventName' = $MyInvocation.MyCommand.Name

105 97

'TelemetryProperties' = $telemetryProperties

106 -

'NoStatus' = (Resolve-ParameterWithDefaultConfigurationValue -Name NoStatus -ConfigValueName DefaultNoStatus)

107 98

}

108 99 109 100

return (Invoke-GHRestMethodMultipleResult @params | Add-GitHubUserAdditionalProperties)

@@ -137,12 +128,6 @@ filter Test-GitHubAssignee

137 128

If provided, this will be used as the AccessToken for authentication with the

138 129

REST Api. Otherwise, will attempt to use the configured value or will run unauthenticated.

139 130 140 -

.PARAMETER NoStatus

141 -

If this switch is specified, long-running commands will run on the main thread

142 -

with no commandline status update. When not specified, those commands run in

143 -

the background, enabling the command prompt to provide status information.

144 -

If not supplied here, the DefaultNoStatus configuration property value will be used.

145 - 146 131

.INPUTS

147 132

GitHub.Branch

148 133

GitHub.Content

@@ -187,7 +172,7 @@ filter Test-GitHubAssignee

187 172

#>

188 173

[CmdletBinding(DefaultParameterSetName = 'Elements')]

189 174

[OutputType([bool])]

190 -

[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.")]

191 176

param(

192 177

[Parameter(ParameterSetName='Elements')]

193 178

[string] $OwnerName,

@@ -206,9 +191,7 @@ filter Test-GitHubAssignee

206 191

[Alias('UserName')]

207 192

[string] $Assignee,

208 193 209 -

[string] $AccessToken,

210 - 211 -

[switch] $NoStatus

194 +

[string] $AccessToken

212 195

)

213 196 214 197

Write-InvocationLog

@@ -231,7 +214,6 @@ filter Test-GitHubAssignee

231 214

'TelemetryEventName' = $MyInvocation.MyCommand.Name

232 215

'TelemetryProperties' = $telemetryProperties

233 216

'ExtendedResult'= $true

234 -

'NoStatus' = (Resolve-ParameterWithDefaultConfigurationValue -Name NoStatus -ConfigValueName DefaultNoStatus)

235 217

}

236 218 237 219

try

@@ -279,12 +261,6 @@ function Add-GitHubAssignee

279 261

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 -

.PARAMETER NoStatus

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.")]

346 322

param(

347 323

[Parameter(ParameterSetName='Elements')]

348 324

[string] $OwnerName,

@@ -370,9 +346,7 @@ function Add-GitHubAssignee

370 346

[Alias('UserName')]

371 347

[string[]] $Assignee,

372 348 373 -

[string] $AccessToken,

374 - 375 -

[switch] $NoStatus

349 +

[string] $AccessToken

376 350

)

377 351 378 352

begin

@@ -416,7 +390,6 @@ function Add-GitHubAssignee

416 390

'AcceptHeader' = $script:symmetraAcceptHeader

417 391

'TelemetryEventName' = $MyInvocation.MyCommand.Name

418 392

'TelemetryProperties' = $telemetryProperties

419 -

'NoStatus' = (Resolve-ParameterWithDefaultConfigurationValue -Name NoStatus -ConfigValueName DefaultNoStatus)

420 393

}

421 394 422 395

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 -

.PARAMETER NoStatus

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

618 583

'AcceptHeader' = $script:symmetraAcceptHeader

619 584

'TelemetryEventName' = $MyInvocation.MyCommand.Name

620 585

'TelemetryProperties' = $telemetryProperties

621 -

'NoStatus' = (Resolve-ParameterWithDefaultConfigurationValue -Name NoStatus -ConfigValueName DefaultNoStatus)

622 586

}

623 587 624 588

return (Invoke-GHRestMethod @params | Add-GitHubIssueAdditionalProperties)


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4