Company
Word count
181
Language
English
Contains code?

Text

This guide describes how to setup pre-queue conditions . RegExp PR Title and Body Validation Aviator supports validating the PR title and description. For instance, if you want to require each PR title to have a ticket number, or if you have a checklist of items in the body, you can setup the preconditions: Copy

preconditions:
  validations:
   - name: Require JIRA ticket in title
     match:
       type: title
       regex:
       - '^\[AVT\-\d+\].+$'
   - name: Require tests have been run checkbox
      match:
        type: body
        regex:
        - '^\[x\] All relevant tests have been run$'
    - name: Require documentation checkbox
      match:
        type: body
        regex:
        - '^\[x\] The documentation has been updated$'

Using this now, Aviator will look for a PR title starting with “[AVT-”, and would require the body to have the following two checks marked as done: When the checks fail, you will see the “name” of the validation reported in the comment as failure, blocking the PR from getting queued: Previous How to Set Up Fast-Forwarding Next How to Queue / Dequeue via API Last updated 11 months ago Was this helpful?

Analysis

No analysis created yet for this page.