1. commitlint-azure-pipelines-cli
Lint relevant commits for a branch or PR in Azure Pipelines
commitlint-azure-pipelines-cli
Package: commitlint-azure-pipelines-cli
Created by: princjef
Last modified: Mon, 05 Dec 2022 17:06:51 GMT
Version: 1.0.5
License: MIT
Downloads: 23,287
Repository: https://github.com/princjef/commitlint-azure-pipelines-cli

Install

npm install commitlint-azure-pipelines-cli
yarn add commitlint-azure-pipelines-cli

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

Dependencies

RELATED POST

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin