Skip to main content

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

  1. Edit CI job definition to add a trigger upon build request open/update, with changed files matching src/**:

    Pull Request Build Job Trigger

  2. Now if a pull request contains commits changing files under src directory, the CI build will be fired automatically:

    Pull Request Build Successful

  3. 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:

    Branch Protection Files Require Build