dozman99 / Check

Custom Pull Request Policy in Azure DevOps

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Checklist Checker ✅

Custom Policy in Azure DevOps to check if checklist is present in description of Pull Request.

Table of Contents

About

When a Pull Request is created/updated, this tool checks the description of Pull Request for specific keywords ("Checklist", "Yes", "No") and sets the Pull Request status (succeeded/failed) in Azure DevOps.
Alt text

Prerequisites

Installation

Clone the repository

$ git clone https://github.com/jagdish7908/Check.git && cd Check

Install dependencies

$ npm install

Create an environment variable for your collection URL, replacing with the name of your Azure DevOps organization.

$ setx COLLECTIONURL "https://dev.azure.com/<your account>"

Create a personal auth token (PAT) for your app to use, following these instructions: Authenticating with personal access tokens. You should create a new PAT for every service that you use to access your account, naming it appropriately.

$ setx TOKEN "yourtokengoeshere"

Usage

$ node app.js

Integration with Azure DevOps

Configure web hook for Pull Requests in Azure DevOps

References

About

Custom Pull Request Policy in Azure DevOps

License:MIT License


Languages

Language:JavaScript 59.7%Language:HTML 40.3%