Variables
Variables are used in condition expressions and represent information from the evaluated target, usually a pull request.
If no triggers are explicitly defined for a rule, they may be
implied from the variables used in conditions. For example, the variable behind could change when the triggers
pr_created and pr_updated are activated, so if the rule doesn't explicitly set a trigger, these two are added
automatically.
Available operators
-
number_reviewers- Number of reviewers -
reviewer- Reviewer -
number_assignees- Number of assignees -
assignee- Assignee -
label- Label -
merged- Merged -
mergeable- Mergeable -
behind- Pull request is behind the base branch -
conflict- Conflict with base branch -
draft- Draft -
closed- Closed -
base- Base branch -
commit_message- Commit messages -
author- Pull request and commit authors -
pull_request_author- Pull request author -
commit_author- Authors of commits in the pull request -
title- Pull request title -
description- Pull request description -
status_success- List of status contexts in a Success state -
status_failure- List of status contexts in a Failure state -
status_pending- List of status contexts in a Pending state -
status_error- List of status contexts in a Error state -
review_approved- List of usernames that have reviewed the PR in a Approved state -
review_dismissed- List of usernames that have reviewed the PR in a Dismissed state -
review_changes_requested- List of usernames that have reviewed the PR in a Changes requested state -
review_commented- List of usernames that have reviewed the PR in a Commented state -
review_pending- List of usernames that have reviewed the PR in a Pending state -
review_submitted- List of usernames that have reviewed the PR in a Submitted state