Skip to content

Latest commit

 

History

History
16 lines (12 loc) · 751 Bytes

File metadata and controls

16 lines (12 loc) · 751 Bytes

Introduction

The goal of this project is to provide a sample to create Azure DevOps policies, more specifically: Build Validation, Minimum number of reviewers and Required reviewers policies, throught the Azure DevOps SDK.

You can also use the build pipeline to automate policy creation and updating.

Requirements

  • Python 3.8+ (Local-only config)
  • Git 2.25.1+ (Local-only config)

Running

  1. Create a Personal Access Token

  2. Replace %PERSONAL_ACCESS_TOKEN% with token created in the step one:

PAT='%PERSONAL_ACCESS_TOKEN%' python app.py