Otter Azure tools

Super cute Otter!

Description

Stable Version Bundle Size

This module provides a tool to comment a Pull Request on Azure.

Comment Azure PR

Usage

Example :
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:

  • the access token (--accessToken <accessToken>)
  • the thread identifier (--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)

Arguments

Argument Description
comment Comment to publish on the Azure PR

Options

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

Example

Example :
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)

results matching ""

    No results matching ""