Sync eng/common directory with azure-sdk-tools for PR https://github.com/Azure/azure-sdk-tools/pull/1081 See [eng/common workflow](https://github.com/Azure/azure-sdk-tools/blob/master/eng/common/README.md#workflow)
28 lines
580 B
PowerShell
28 lines
580 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
|
|
)
|
|
|
|
. "${PSScriptRoot}\common.ps1"
|
|
|
|
try {
|
|
Add-IssueComment -RepoOwner $RepoOwner -RepoName $RepoName `
|
|
-IssueNumber $IssueNumber -Comment $Comment -AuthToken $AuthToken
|
|
}
|
|
catch {
|
|
LogError "Add-IssueComment failed with exception:`n$_"
|
|
exit 1
|
|
} |