Files
mcp-microsoft/eng/common/scripts/Add-IssueComment.ps1
T
Patrick Hallisey 886f116949 Add Azure MCP Server source (#1)
Contributors include:
@jongio
@hallipr
@conniey
@stephentoub
@g2vinay
@wbreza
@rohit-ganguly
@heaths
@lfraleigh
@lmolkova
@joshfree
@JeffreyCA
@digitarald
@fanyang-mono
@christothes
@agocke
2025-04-16 13:17:09 -07:00

28 lines
600 B
PowerShell

[CmdletBinding(SupportsShouldProcess = $true)]
param(
[Parameter(Mandatory = $true)]
[string]$RepoOwner,
[Parameter(Mandatory = $true)]
[string]$RepoName,
[Parameter(Mandatory = $true)]
[string]$IssueNumber,
[Parameter(Mandatory = $true)]
[string]$Comment,
[Parameter(Mandatory = $true)]
[string]$AuthToken
)
. (Join-Path $PSScriptRoot common.ps1)
try {
Add-GithubIssueComment -RepoOwner $RepoOwner -RepoName $RepoName `
-IssueNumber $IssueNumber -Comment $Comment -AuthToken $AuthToken
}
catch {
LogError "Add-GithubIssueComment failed with exception:`n$_"
exit 1
}