Skip to content

The YAML pr: triggers don't work with Azure Repos Git #2015

@vinicius83

Description

@vinicius83

Git provider (optional)

Azure Repo

System Info (optional)

Azure Devops

Issues details

Issue: The YAML pr: triggers don't work with Azure Repos Git (only GitHub/Bitbucket Cloud).

Solution for Azure Repos Git: Need to add Build Validation policy in Branch Policies:
Project Settings → Repositories → Branches → [target branch] → Branch Policies
Add Build Validation → Select PR Agent pipeline → Set as Required
The pr: section in the YAML can also be removed, as it’s not needed for Azure Repos.

Suggestion: Consider adding this distinction to the Azure DevOps docs to help teams avoid troubleshooting.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions