1.13.3 • Published 6 days ago

auto-approver v1.13.3

Weekly downloads
4
License
GPL-3.0
Repository
github
Last release
6 days ago

auto-approver License: GPL v3 npm version

Automatically approve all GitHub PRs which match a specific pattern.

Prerequisites

Installation

ℹ️ This is a hybrid CommonJS / ESM module.

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:
  -m, --message <text>  comment on PRs instead of approving them
  -c, --config <path>   specify a configuration file (default: .approverrc.json)
  -V, --version         output the version number
  -h, --help            display help for command

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:

{
  /** The GitHub auth token */
  authToken: string;
  /** Don't send any data */
  dryRun?: boolean;
  /** Include draft PRs */
  keepDrafts?: boolean;
  /** All projects to include */
  projects: {
    /** All projects hosted on GitHub in the format `user/repo` */
    gitHub: string[];
  };
  /** Post a comment on the PRs instead of approving them */
  useComment?: string;
  /**
   * Currently not in use
   * @deprecated
   */
  verbose?: boolean;
}

If you would like to use a custom configuration file, start the CLI with the option --config <file>.

Configuration file examples

1.13.3

6 days ago

1.13.2

4 months ago

1.13.1

4 months ago

1.13.0

4 months ago

1.12.9

4 months ago

1.12.10

4 months ago

1.12.7

4 months ago

1.12.8

4 months ago

1.12.3

5 months ago

1.12.6

5 months ago

1.12.5

5 months ago

1.12.4

5 months ago

1.12.2

6 months ago

1.12.1

6 months ago

1.12.0

6 months ago

1.11.1

1 year ago

1.11.0

1 year ago

1.9.0

1 year ago

1.8.4

1 year ago

1.8.3

1 year ago

1.10.1

1 year ago

1.10.0

1 year ago

1.8.2

1 year ago

1.8.1

1 year ago

1.8.0

3 years ago

1.7.0

3 years ago

1.6.5

4 years ago

1.6.4

4 years ago

1.6.3

4 years ago

1.6.2

4 years ago

1.6.1

4 years ago

1.6.0

4 years ago

1.5.0

4 years ago

1.4.1

4 years ago

1.4.0

4 years ago

1.3.2

4 years ago

1.3.1

4 years ago

1.3.0

4 years ago

1.2.0

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago