A RetroSearch Logo

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

Search Query:

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

Adding -Force switch to ConfirmImpact=High functions (#226) · microsoft/PowerShellForGitHub@3c642d2 · GitHub

@@ -302,6 +302,9 @@ function Remove-GitHubLabel

302 302

Name of the label to be deleted.

303 303

Emoji and codes are supported. For more information, see here: https://www.webpagefx.com/tools/emoji-cheat-sheet/

304 304 305 +

.PARAMETER Force

306 +

If this switch is specified, you will not be prompted for confirmation of command execution.

307 + 305 308

.PARAMETER AccessToken

306 309

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

307 310

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

@@ -321,6 +324,11 @@ function Remove-GitHubLabel

321 324

Remove-GitHubLabel -OwnerName Microsoft -RepositoryName PowerShellForGitHub -Name TestLabel -Confirm:$false

322 325 323 326

Removes the label called "TestLabel" from the PowerShellForGitHub project. Will not prompt for confirmation, as -Confirm:$false was specified.

327 + 328 +

.EXAMPLE

329 +

Remove-GitHubLabel -OwnerName Microsoft -RepositoryName PowerShellForGitHub -Name TestLabel -Force

330 + 331 +

Removes the label called "TestLabel" from the PowerShellForGitHub project. Will not prompt for confirmation, as -Force was specified.

324 332

#>

325 333

[CmdletBinding(

326 334

SupportsShouldProcess,

@@ -345,6 +353,8 @@ function Remove-GitHubLabel

345 353

[Alias('LabelName')]

346 354

[string] $Name,

347 355 356 +

[switch] $Force,

357 + 348 358

[string] $AccessToken,

349 359 350 360

[switch] $NoStatus

@@ -361,6 +371,11 @@ function Remove-GitHubLabel

361 371

'RepositoryName' = (Get-PiiSafeString -PlainText $RepositoryName)

362 372

}

363 373 374 +

if ($Force -and (-not $Confirm))

375 +

{

376 +

$ConfirmPreference = 'None'

377 +

}

378 + 364 379

if ($PSCmdlet.ShouldProcess($Name, "Remove label"))

365 380

{

366 381

$params = @{

@@ -859,6 +874,9 @@ function Remove-GitHubIssueLabel

859 874

Name of the label to be deleted. If not provided, will delete all labels on the issue.

860 875

Emoji and codes are supported. For more information, see here: https://www.webpagefx.com/tools/emoji-cheat-sheet/

861 876 877 +

.PARAMETER Force

878 +

If this switch is specified, you will not be prompted for confirmation of command execution.

879 + 862 880

.PARAMETER AccessToken

863 881

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

864 882

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

@@ -878,6 +896,11 @@ function Remove-GitHubIssueLabel

878 896

Remove-GitHubIssueLabel -OwnerName Microsoft -RepositoryName PowerShellForGitHub -Name TestLabel -Issue 1 -Confirm:$false

879 897 880 898

Removes the label called "TestLabel" from issue 1 in the PowerShellForGitHub project. Will not prompt for confirmation, as -Confirm:$false was specified.

899 + 900 +

.EXAMPLE

901 +

Remove-GitHubIssueLabel -OwnerName Microsoft -RepositoryName PowerShellForGitHub -Name TestLabel -Issue 1 -Force

902 + 903 +

Removes the label called "TestLabel" from issue 1 in the PowerShellForGitHub project. Will not prompt for confirmation, as -Force was specified.

881 904

#>

882 905

[CmdletBinding(

883 906

SupportsShouldProcess,

@@ -901,6 +924,8 @@ function Remove-GitHubIssueLabel

901 924

[Alias('LabelName')]

902 925

[string] $Name,

903 926 927 +

[switch] $Force,

928 + 904 929

[string] $AccessToken,

905 930 906 931

[switch] $NoStatus

@@ -928,6 +953,11 @@ function Remove-GitHubIssueLabel

928 953

$description = "Deleting all labels from issue $Issue in $RepositoryName"

929 954

}

930 955 956 +

if ($Force -and (-not $Confirm))

957 +

{

958 +

$ConfirmPreference = 'None'

959 +

}

960 + 931 961

if ($PSCmdlet.ShouldProcess($Name, "Remove label"))

932 962

{

933 963

$params = @{


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