Using
Azure DevOps Pipelines
Last reviewed
Still the enterprise default in many places. Close to GitHub Actions in YAML, but pull request rules live in branch policies, not in the repo.
What differs from GitHub
| Azure DevOps | GitHub | |
|---|---|---|
| PR trigger | The YAML pr: trigger doesn't work for Azure Repos; a build validation policy starts the run |
on: pull_request in the GitHub Actions workflow file |
| Path scoping | Path filter on the policy: left to right, ! excludes, a path must start with / or a wildcard |
paths: in the workflow; a required check that gets skipped stays Pending and blocks the merge |
| Reviewers | Automatically included reviewers: a policy with a path filter, set outside the repo | CODEOWNERS file in the repo: last match wins, one owner's approval is enough |
What I check
Branch policies aren't in the repo, so I list them when something behaves oddly:
az repos policy list --branch main --repository-id <repo-id>
Links
- Azure Pipelines documentation — YAML schema, templates and service connections.
- Branch policies — Build validation, path filters and automatically included reviewers.
- pr definition — The YAML
pr:trigger and where it applies. - About code owners — The
CODEOWNERSfile and its matching rules. - Troubleshooting required status checks — Why a skipped required check stays Pending.
History
- 30 Jul 2026 Reviewed. No change.