...

Text file src/github.com/Azure/azure-sdk-for-go/eng/common/scripts/Add-IssueComment.ps1

Documentation: github.com/Azure/azure-sdk-for-go/eng/common/scripts

     1[CmdletBinding(SupportsShouldProcess = $true)]
     2param(
     3  [Parameter(Mandatory = $true)]
     4  [string]$RepoOwner,
     5
     6  [Parameter(Mandatory = $true)]
     7  [string]$RepoName,
     8
     9  [Parameter(Mandatory = $true)]
    10  [string]$IssueNumber,
    11
    12  [Parameter(Mandatory = $true)]
    13  [string]$Comment,
    14
    15  [Parameter(Mandatory = $true)]
    16  [string]$AuthToken
    17)
    18
    19. (Join-Path $PSScriptRoot common.ps1)
    20
    21try {
    22  Add-GithubIssueComment -RepoOwner $RepoOwner -RepoName $RepoName `
    23  -IssueNumber $IssueNumber -Comment $Comment -AuthToken $AuthToken
    24}
    25catch {
    26  LogError "Add-GithubIssueComment failed with exception:`n$_"
    27  exit 1
    28}

View as plain text