review ๐Ÿ”—

The review action reviews the pull request. You can use it to approve or request a change on a pull request.

Options ๐Ÿ”—

Key Name

Value Type

Default

Value Description

type

string

APPROVE

The kind of review, can be APPROVE, REQUEST_CHANGES, COMMENT

message

Template

The message to write as a comment.

bot_account

Template

Mergify can impersonate a GitHub user to review a pull request. If no bot_account is set, Mergify will review the pull request itself.

Examples ๐Ÿ”—

You can use Mergify to review a pull request on your behalf. This can be handy if you require a minimum number of review to be present on a pull request (e.g., due to branch protection) but wants to automate some merge.

Dependabot is the bot behind GitHub automatic security update. It sends automatic updates for your project's dependencies, making sure they are secure. You can automate the approval of pull request created by dependabot with a rule such as:

pull_request_rules:
  - name: automatic approval for Dependabot pull requests
    conditions:
      - author~=^dependabot(|-preview)\[bot\]$
    actions:
      review:
        type: APPROVE
        message: Automatically approving dependabot