If your Azure Pipelines eval gate runs on pushes to main but never on a pull request, the YAML is not the problem. Microsoft’s documentation is explicit: for an Azure Repos Git repository you cannot configure a PR trigger in the YAML file, and the functionality is implemented by a branch policy ...
Source: [Dev.to](https://dev.to/multigrid/gating-a-merge-on-an-eval-score-in-azure-pipelines-19ai)