• Get Review Board
  • What's New
  • Products
  • Review Board Code review, image review, and document review
  • Documentation
  • Release Notes
  • Power Pack Enterprise integrations, reports, and enhanced document review
  • Try for 60 Days
  • Purchase
  • RBCommons Review Board as a Service, hosted by us
  • Pricing
  • RBTools Command line tools and Python API for Review Board
  • Documentation
  • Release Notes
  • Review Bot Automated code review, connecting tools you already use
  • Documentation
  • Release Notes
  • RB Gateway Manage Git and Mercurial repositories in your network
  • Documentation
  • Release Notes
  • Learn and Explore
  • What is Code Review?
  • Documentation
  • Frequently Asked Questions
  • Support Options
  • Third-Party Integrations
  • Demo
  • Review Board RBTools Power Pack Review Bot Djblets RB Gateway
    1. Review Board 1.0
    2. Version 7.x
    3. Version 6.x
    4. Version 5.0
    5. Version 4.0
    6. Version 3.0
    7. Version 2.5
    8. Version 2.0
    9. Version 1.7
    10. Version 1.6
    11. Version 1.5
    12. Version 1.0
    13. Administration Guide
    14. Management
    15. Managing Default Reviewers
  • Home
  • General Index
  • Release Notes
  • This documentation covers Review Board 1.0. You can select a version above or view the latest documentation.

    Managing Default Reviewers¶

    The Default Reviewers list provides a way to automatically add certain users or groups to the reviewer lists on new review requests, depending on the paths of the files modified in the diff.

    This is most useful when particular review groups own parts of the tree.

    Adding Default Reviewers¶

    To add a new default reviewer, click the “Add” link next to the “Default reviewers” entry in the database section or the Administrator Dashboard in the Administration UI.

    A form will appear with the following fields:

    • Name (required)

      A name describing this default reviewer. This won’t be shown to users.

    • File regex (required)

      A “regular expression” defining the file path. This is way of specifying patterns to match strings.

      See Regex Pattern Matching for more information.

    • Default groups (optional)

      One or more review groups that should be automatically added to a review request when the File regex matches a file in the diff.

      The list contains possible review groups to match. Selected entries are the groups you want to add. Hold down “Control” (on the PC) or “Command” (on the Mac) to select more than one.

      At least one group or one user should be selected for this default reviewer entry to be useful.

    • Default people (optional)

      One or more groups that should be automatically added to a review request when the File regex matches a file in the diff.

      The list contains possible users to match. Selected entries are the users you want to add. Hold down “Control” (on the PC) or “Command” (on the Mac) to select more than one.

      At least one group or one user should be selected for this default reviewer entry to be useful.

    Editing Default Reviewers¶

    To edit a default reviewer, click “Default reviewers” in the Administrator Dashboard or Database section of the Administration UI. You can then browse to the default reviewer you want to modify and click it.

    See Adding Default Reviewers for a description of each field.

    When done, click Save to save your changes.

    Deleting Default Reviewers¶

    To delete a default reviewer, follow the instructions in Editing Default Reviewers to find the default reviewer you want to get rid of. Then click Delete at the bottom of the page.

    Regex Pattern Matching¶

    Regular expressions (or “regexes”) provide a way to match potentially complex strings of text. In this case, file paths.

    A regular expression contains a mix of the text you want to match and special characters defining the pattern. Some of the more important concepts are described below:

    • Matching any number of characters

      To match any number of characters, you can use .* or .+. The period (.) means to match a single character. The asterisk (*) means to match zero or more characters. The plus (+) means to match one or more characters.

      This will often be used at the end of a directory hierarchy, if you want to match on every file or directory inside that directory.

      For example:

      /trunk/project1/src/.*
    • Matching multiple possible strings

      To match one or more possible strings (such as two possible directory names in a patch), you can place parenthesis around the text and separate the possible matches with a |.

      For example:

      /trunk/(project1|project2)/src/.*
    • Matching a period

      Periods are special characters in regular expressions. They match 1 single character, any character. To actually match a period, you can escape it with a backslash, as follows: \.

      For example:

      /trunk/project1/src/*\.c

    More operators can be found on About.com’s Python Regular Expressions guide. The above is all that’s generally needed for file paths, though.

    Keep up with the latest Review Board releases, security updates, and helpful information.

    About
    News
    Demo
    RBCommons Hosting
    Integrations
    Happy Users
    Support Options
    Documentation
    FAQ
    User Manual
    RBTools
    Administration Guide
    Power Pack
    Release Notes
    Downloads
    Review Board
    RBTools
    Djblets
    Power Pack
    Package Store
    PGP Signatures
    Contributing
    Bug Tracker
    Submit Patches
    Development Setup
    Wiki
    Follow Us
    Mailing Lists
    Reddit
    Twitter
    Mastodon
    Facebook
    YouTube

    Copyright © 2006-2025 Beanbag, Inc. All rights reserved.

    Terms of Service — Privacy Policy — AI Ethics Policy — Branding

    On this page

    • [Top]
    • Adding Default Reviewers
    • Editing Default Reviewers
    • Deleting Default Reviewers
    • Regex Pattern Matching