Exclude pull requests

Tags: Flow

Overview

Based on your review workflow, there may be a need to exclude PRs from your reports that may impact your review metrics. Using the features outlined below, you can exclude PRs from your reports using regular expression. Common use cases:

  • Work in progress PRs (WIP)
  • Draft PRs

Excluding PRs

To exclude PRs from your reports you will need the Configurations permission.

Step 1: If you have adequate permissions go to the top navigation bar and click Settings. Using the left navigation under Report Settings, click Configurations.


Step 2: Under the General tab, locate the Pull Request to Exclude section and click New rule.


 Step 3: Add your regular expression and select where match the expression on:

  • Match on user - Match your regular expression on the PR creator
  • Match on title - Match regular expression on the title of the PR.
  • Match on label - Match regular expression on the PR label (PR #1234)

Step 4: You can test your regular expression on existing PRs by clicking Test a Regular Expression. In this modal you can input specific PRs to test on, or to view the most recent 100 PRs. This will help you ensure that your regular expression is matching on the PRs you want to exclude.


 Step 5: When you are finished adding in your rule/s click Save Changes at the bottom of the page and you will be prompted to re-score your PRs based on the exclusion rules.


Tip: Changing Pull Request Tracking can cause slight delays in processing pull requests.

Step 6: Once the PR reprocessing has finished, excluded PRs will appear in your reports as depicted below:

Work log report and PR details:


Review and collaboration reports:


Want to exclude the a PR comment from your metrics, check out How to Exclude PR Comments.

back to top


If you need help, please email support@pluralsight.com for 24/7 assistance.