commitlint-azure-pipelines-cli
TypeScript icon, indicating that this package has built-in type declarations

1.0.5 • Public • Published

commitlint-azure-pipelines-cli

Build Status Code Coverage npm version

Lint relevant commits for a branch or Pull Request in Azure Pipelines using commitlint with no configuration needed.

Getting Started

Add this package and commitlint to your dev dependencies:

npm install --save-dev @commitlint/cli commitlint-azure-pipelines-cli

Then, in your azure-pipelines.yml file, add a step to invoke it:

steps:
  # Other steps (e.g. install, setup)
  - script: ./node_modules/.bin/commitlint-azure-pipelines

Alternatively, you can add a standalone job for running commitlint:

jobs:
  - job: commitlint
    pool:
      vmImage: 'ubuntu-16.04'
    steps:
      - task: NodeTool@0
        inputs:
          versionSpec: 10.x
      - script: npm ci
      - script: ./node_modules/.bin/commitlint-azure-pipelines
        name: Lint commits

Compatibility

This package is only tested against Node.js 10.x and up. This task is tested against all of the hosted operating systems (win, mac, linux).

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.5
    3,097
    • latest

Version History

Package Sidebar

Install

npm i commitlint-azure-pipelines-cli

Weekly Downloads

6,257

Version

1.0.5

License

MIT

Unpacked Size

11.2 kB

Total Files

10

Last publish

Collaborators

  • princjef