Skip to content

Commit 03df0e3

Browse files
Resolve remaining PowerShell lint warning
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
1 parent 723ac80 commit 03df0e3

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

.github/scripts/docs/Cleanup-PreviewDocs.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,4 +93,4 @@ if ($LASTEXITCODE -ne 0) {
9393
}
9494

9595
$commentBody = "<!-- docs-pr-preview -->`n🧹 Preview removed: $PreviewUrl"
96-
Update-IssueComment -Repository $Repository -IssueNumber $PullRequestNumber -Marker '<!-- docs-pr-preview -->' -Body $commentBody
96+
Write-IssueComment -Repository $Repository -IssueNumber $PullRequestNumber -Marker '<!-- docs-pr-preview -->' -Body $commentBody

.github/scripts/docs/Publish-PreviewDocs.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,6 @@ if (-not [string]::IsNullOrWhiteSpace($status)) {
8282

8383
$commentBody = "<!-- docs-pr-preview -->`n✅ Preview is ready: $PreviewUrl"
8484
$env:GH_TOKEN = $Token
85-
Update-IssueComment -Repository $Repository -IssueNumber $PullRequestNumber -Marker '<!-- docs-pr-preview -->' -Body $commentBody
85+
Write-IssueComment -Repository $Repository -IssueNumber $PullRequestNumber -Marker '<!-- docs-pr-preview -->' -Body $commentBody
8686

8787
Write-WorkflowOutput -Name 'url' -Value $PreviewUrl

.github/scripts/docs/Shared.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ function Invoke-Gh {
6060
return $output
6161
}
6262

63-
function Update-IssueComment {
63+
function Write-IssueComment {
6464
<#
6565
.SYNOPSIS
6666
Creates or updates a marker-based issue/PR comment.

0 commit comments

Comments
 (0)