auto-approver
Automatically approve all GitHub PRs which match a specific pattern.
Installation
Run yarn global add auto-approver
or npm i -g auto-approver
.
Usage
CLI
Usage: auto-approver [options]
Automatically approve all GitHub PRs which match a specific pattern.
Options:
-c, --config <path> specify a configuration file (default: .approverrc.json)
-V, --version output the version number
-h, --help output usage information
Configuration file
To use a configuration file, add a configuration file following the cosmiconfig standard (e.g. .approverrc.json
) to your project and the auto-approver will find it automatically. Options from the CLI still take precedence over the configuration file.
The structure of the configuration file is the following:
{
authToken: string;
projects: {
gitHub: string[];
};
verbose?: boolean;
}
If you would like to use a custom configuration file, start the CLI with the option --config <file>
.
Configuration file examples