1

What I have to do is, I have 1 branch as below in the azure DevOps respository

  1. dev

Then I create a new branch as dev-C123456, so now I have two branches (dev and dev-C123456)

Then I do some changes to dev-C123456 and I create a Pull Request from dev-C123456 to dev. So once the changes are reviewed, the approver will Approve and Complete the pull request.

Right after he clicks Completes, I want a pipeline to run.

Here's my

And I have a auzre-piplines-on-pr.yml which will trigger the pipeline. For example, in dev branch, I have like this;

pr:
  branches:
    include:
    - dev
...

But it never triggers a pipeline, what should I do?

Jananath Banuka
  • 2,951
  • 8
  • 57
  • 105

1 Answers1

0

Right after he clicks Completes, I want a pipeline to run.

So put a trigger for the target branch.

trigger:
  branches:
    include:
    - dev

That will run whenever a commit is made to dev, including when the commit is a PR merge commit.

Daniel Mann
  • 57,011
  • 13
  • 100
  • 120