Search code examples
azuregithubyamldevops

GitHub PR Merge does not trigger Azure DevOps Pipeline


I have my repository on GitHub and my CI/CD pipelines on Azure DevOps. What I want to achieve is, that once a PR merges onto the master branch that the pipeline deploys. No PR creation should trigger the pipeline. Unfortunately I can't seem to get the trigger right. My trigger looks like this:

trigger:
  branches:
    include:
      - master
pr: none

When I push changes onto the master branch, the pipeline gets triggered. But if I do it via GitHub PR, nothing happens. I also tried it with release pipelines but I seem to have the same problem there. Any pointers in the right direction would be much appreciated!


Solution

  • I have figured it out. Something is completely off in my repository. No idea how I managed that, since I thought that should not even be possible. Anyway, I tried the triggers with an empty repository and it works like a charm.