vsts-pr-comment

1.1.1 • Public • Published

Azure Devops pullrequest comment

Simple cli-tool with no dependencies to quickly post comments to azure-pipelines from azure-pipelines.

Environment variables

The required configuration with the exception of accesstoken is already set by default in azure pipelines.

org_url = process.env.SYSTEM_COLLECTIONURI
project = process.env.SYSTEM_TEAMPROJECT
repository = process.env.BUILD_REPOSITORY_NAME
pr = process.env.SYSTEM_PULLREQUEST_PULLREQUESTID
token = process.env.AZURE_DEVOPS_PERSONAL_ACCESS_TOKEN

Usage in azure-pipelines

steps:
- bash: |
    echo "my comment from ci" | npx vsts-pr-comment
  env:
    SYSTEM_ACCESSTOKEN: $(System.AccessToken)

Endpoints used

Readme

Keywords

none

Package Sidebar

Install

npm i vsts-pr-comment

Weekly Downloads

1

Version

1.1.1

License

ISC

Unpacked Size

7.89 kB

Total Files

6

Last publish

Collaborators

  • pedantic_gauss