Package detail

commitlint-azure-pipelines-cli

princjef11.7kMIT1.0.5

Lint relevant commits for a branch or PR in Azure Pipelines

commitlint, cli, azure, pipelines

readme

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).

changelog

1.0.5 (2022-12-05)

Bug Fixes

  • deps: support commitlint >=7 (c862b22)

1.0.4 (2022-12-05)

Bug Fixes

  • commitlint: remove body limit on commit (c158b51)
  • commitlint: remove footer limit on commit (d4b764c)
  • deps: update dependencies and pipeline configuration (#26) (47e2191)

1.0.3 (2019-12-23)

Bug Fixes

  • deps: update all dependencies to latest (#8) (5cc0853)

1.0.2 (2019-06-04)

Bug Fixes

  • deps: add support for commitlint 8 (#3) (1b256b0)

1.0.1 (2019-03-10)

Bug Fixes

  • pr: resolve target commit from merge (#1) (44f4cc7)

1.0.0 (2019-03-10)

Features