Skip to main content
Version: Next

Commands

Reviewpad commands introduce the ability to trigger reviewpad actions through a command-like instruction using pull request comments.

This is particularly useful when you want to trigger actions on a pull request that are not specified in the reviewpad configuration file.

A command is a comment that follows the following format:

/reviewpad [ACTION] [ACTION_ARGUMENTS]

Where ACTION is the action to be triggered and ACTION_ARGUMENTS are the arguments to be passed to the action.

Available commands

assign-reviewers


The assign-reviewers command triggers the $assignReviewer action.

This command assigns a defined amount of reviewers to the pull request from the provided list of reviewers.

Arguments:

ArgumentsDescription
comma_separated_list_of_reviewersList of GitHub logins to select from.

Flags:

FlagsDescription
-t, --total-reviewersThe total number of reviewers to assign to. By default, it assigns to all reviewers.
-p, --review-policyThe policy followed for reviewer assignment. By default, the policy is reviewpad.

Syntax:

/reviewpad assign-reviewers <comma_separated_list_of_reviewers> [--total-reviewers|-t] <total_required_reviewers> [--review-policy|-p] <review_policy>

Examples:

/reviewpad assign-reviewers john,jane
/reviewpad assign-reviewers john,jane --total-reviewers 1 --review-policy random
/reviewpad assign-reviewers jane,john -t 1 -p random

assign-random-reviewer


The assign-random-reviewer command triggers the $assignRandomReviewer action.

This command assigns a random user of the GitHub organization as the reviewer.

Arguments:

none

Syntax:

/reviewpad assign-random-reviewer

Examples:

/reviewpad assign-random-reviewer

dry-run


The dry-run command runs reviewpad in dry-run mode on the pull request where the command is invoked. The outcome of the dry-run is added as a pull request comment. The reviewpad configuration used is the one from the pull request base branch or the head branch if the pull request updates the reviewpad configuration.

Arguments:

none

Syntax:

/reviewpad dry-run

Examples:

/reviewpad dry-run

run


The run command triggers a reviewpad run.

The reviewpad configuration used is the one from the pull request base branch or the head branch if the pull request updates the reviewpad configuration.

Arguments:

none

Syntax:

/reviewpad run

Examples:

/reviewpad run

summarize 🧪


🧪 EXPERIMENTAL

This is a command that is currently in closed beta phase.

Join the waitlist. We will notify you when the command is available for you to use.

We send information to OpenAI about the pull request, including parts of the git patch and git diff. We do not send any information that is not retrieved from the pull request. For more questions, contact us on discord.

The summarize command adds a comment to the pull request with the summary of the changes.

Arguments:

none

Syntax:

/reviewpad summarize

Examples:

/reviewpad summarize