This module provides a tool to comment a Pull Request on Azure.
yarn dlx -p @o3r/azure-tools o3r-comment-pr <comment> [options]
or
Example :npx -p @o3r/azure-tools o3r-comment-pr <comment> [options]
The required options include:
--accessToken <accessToken>
)--threadIdentifier <threadIdentifier>
)Additionally, the following environment variables must be provided:
SYSTEM_TEAMPROJECT
(System.TeamProject
in Azure)BUILD_REPOSITORY_NAME
(Build.Repository.Name
in Azure)SYSTEM_PULLREQUEST_PULLREQUESTID
(must be a number) (System.PullRequest.PullRequestId
in Azure)SYSTEM_TEAMFOUNDATIONCOLLECTIONURI
(System.TeamFoundationCollectionUri
in Azure)Argument | Description |
---|---|
comment |
Comment to publish on the Azure PR |
Option | Alias | Value Type | Value Options | Default Value | Description |
---|---|---|---|---|---|
--accessToken <accessToken> (Required) |
-T |
string |
Access token (Required) | ||
--commentStatus <commentStatus> |
-s |
string |
Unknown Active Fixed WontFix Closed ByDesign Pending |
Closed |
Comment status |
--mode <mode> |
-m |
string |
Replace Add Skip |
Add |
Replaces thread if existing Adds a comment to the existing thread Do anything if thread already exists |
--threadIdentifier <threadIdentifier> |
-I |
string |
Thread identifier | ||
--help |
-h |
Output usage information |
yarn dlx -p @o3r/azure-tools o3r-comment-pr "[Deployed app]($(url))" -s Closed -I app-link -m Replace -T $(System.AccessToken)
or
Example :npx -p @o3r/azure-tools o3r-comment-pr "[Deployed app]($(url))" -s Closed -I app-link -m Replace -T $(System.AccessToken)