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.
- Python 3.8+ (Local-only config)
- Git 2.25.1+ (Local-only config)
-
Create a Personal Access Token
-
Replace %PERSONAL_ACCESS_TOKEN% with token created in the step one:
PAT='%PERSONAL_ACCESS_TOKEN%' python app.py