File tree 4 files changed +8
-6
lines changed
4 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -244,7 +244,7 @@ function Set-GitHubConfiguration
244
244
}
245
245
}
246
246
247
- if (-not $PSCmdlet.ShouldProcess (' GitHubConfiguration' , ' Save' ))
247
+ if (-not $PSCmdlet.ShouldProcess (' GitHubConfiguration' , ' Save' ))
248
248
{
249
249
return
250
250
}
@@ -344,7 +344,7 @@ function Save-GitHubConfiguration
344
344
[string ] $Path
345
345
)
346
346
347
- if (-not $PSCmdlet.ShouldProcess (' GitHub Configuration' , ' Save' ))
347
+ if (-not $PSCmdlet.ShouldProcess (' GitHub Configuration' , ' Save' ))
348
348
{
349
349
return
350
350
}
@@ -514,7 +514,7 @@ function Reset-GitHubConfiguration
514
514
515
515
Set-TelemetryEvent - EventName Reset-GitHubConfiguration
516
516
517
- if (-not $PSCmdlet.ShouldProcess (' GitHub Configuration' , ' Reset' ))
517
+ if (-not $PSCmdlet.ShouldProcess (' GitHub Configuration' , ' Reset' ))
518
518
{
519
519
return
520
520
}
Original file line number Diff line number Diff line change @@ -550,7 +550,7 @@ filter Set-GitHubIssueComment
550
550
' body' = $Body
551
551
}
552
552
553
- if (-not $PSCmdlet.ShouldProcess ($Issue , ' Create GitHub Issue Comment' ))
553
+ if (-not $PSCmdlet.ShouldProcess ($Comment , ' Update GitHub Issue Comment' ))
554
554
{
555
555
return
556
556
}
Original file line number Diff line number Diff line change @@ -477,7 +477,7 @@ filter Move-GitHubProjectColumn
477
477
' position' = $Position
478
478
}
479
479
480
- if (-not $PSCmdlet.ShouldProcess ($ColumnName , ' Move GitHub Project Column' ))
480
+ if (-not $PSCmdlet.ShouldProcess ($Column , ' Move GitHub Project Column' ))
481
481
{
482
482
return
483
483
}
Original file line number Diff line number Diff line change @@ -391,6 +391,7 @@ filter New-GitHubPullRequest
391
391
if ($PSBoundParameters.ContainsKey (' Title' ))
392
392
{
393
393
$description = " Creating pull request $Title in $RepositoryName "
394
+ $shouldProcessAction = " Create GitHub Pull Request $Title "
394
395
$postBody [' title' ] = $Title
395
396
396
397
# Body may be whitespace, although this might not be useful
@@ -402,6 +403,7 @@ filter New-GitHubPullRequest
402
403
else
403
404
{
404
405
$description = " Creating pull request for issue $Issue in $RepositoryName "
406
+ $shouldProcessAction = " Create GitHub Pull Request for Issue $Issue "
405
407
$postBody [' issue' ] = $Issue
406
408
}
407
409
@@ -416,7 +418,7 @@ filter New-GitHubPullRequest
416
418
$acceptHeader = ' application/vnd.github.shadow-cat-preview+json'
417
419
}
418
420
419
- if (-not $PSCmdlet.ShouldProcess ($Title , ' Create GitHub Pull Request ' ))
421
+ if (-not $PSCmdlet.ShouldProcess ($RepositoryName , $shouldProcessAction ))
420
422
{
421
423
return
422
424
}
You can’t perform that action at this time.
0 commit comments