mirror of
https://github.com/microsoft/mcp.git
synced 2026-11-06 14:05:59 +00:00
Contributors include: @jongio @hallipr @conniey @stephentoub @g2vinay @wbreza @rohit-ganguly @heaths @lfraleigh @lmolkova @joshfree @JeffreyCA @digitarald @fanyang-mono @christothes @agocke
28 lines
600 B
PowerShell
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
|
|
} |