Pull Request Verification
This tutorial explains how to run CI build against merged commit of a pull request via an example setup.
Assumed Scenario
Run CI job against merged commit when pull request changed files under src folder
How to Set Up
-
Edit CI job definition to add a trigger upon build request open/update, with changed files matching src/**:
-
Now if a pull request contains commits changing files under src directory, the CI build will be fired automatically:

-
However even if the CI build fails, the pull request can still merge as long as required reviewers approve. To enforce successful of CI build, we need to add a branch protection rule as below:
