azure-sdk-for-cpp/eng/common/scripts/Add-IssueLabels.ps1
Azure SDK Bot 50a1354aaf
Sync eng/common directory with azure-sdk-tools for PR 1091 (#790)
* Refactpr Submit Pull Request Script

* Refactor logic for interacting with Pull Requests

* Rework API Lib

Co-authored-by: Chidozie Ononiwu <chononiw@microsoft.com>
2020-10-16 13:06:31 -07:00

28 lines
587 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]$Labels,
[Parameter(Mandatory = $true)]
[string]$AuthToken
)
. "${PSScriptRoot}\common.ps1"
try {
Add-GithubIssueLabels -RepoOwner $RepoOwner -RepoName $RepoName `
-IssueNumber $IssueNumber -Labels $Labels -AuthToken $AuthToken
}
catch {
LogError "Add-GithubIssueLabels failed with exception:`n$_"
exit 1
}