1.15.4 • Published 4 months ago

auto-approver v1.15.4

Weekly downloads
4
License
GPL-3.0
Repository
-
Last release
4 months 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.15.4

4 months ago

1.15.3

4 months ago

1.15.2

7 months ago

1.15.1

7 months ago

1.15.0

7 months ago

1.14.3

8 months ago

1.14.2

10 months ago

1.14.1

10 months ago

1.14.0

10 months ago

1.13.5

10 months ago

1.13.4

1 year ago

1.13.3

1 year ago

1.13.2

1 year ago

1.13.1

1 year ago

1.13.0

1 year ago

1.12.9

1 year ago

1.12.10

1 year ago

1.12.7

1 year ago

1.12.8

1 year ago

1.12.3

2 years ago

1.12.6

2 years ago

1.12.5

2 years ago

1.12.4

2 years ago

1.12.2

2 years ago

1.12.1

2 years ago

1.12.0

2 years ago

1.11.1

2 years ago

1.11.0

2 years ago

1.9.0

2 years ago

1.8.4

2 years ago

1.8.3

2 years ago

1.10.1

2 years ago

1.10.0

2 years ago

1.8.2

2 years ago

1.8.1

2 years ago

1.8.0

5 years ago

1.7.0

5 years ago

1.6.5

5 years ago

1.6.4

5 years ago

1.6.3

5 years ago

1.6.2

5 years ago

1.6.1

5 years ago

1.6.0

5 years ago

1.5.0

5 years ago

1.4.1

5 years ago

1.4.0

5 years ago

1.3.2

5 years ago

1.3.1

5 years ago

1.3.0

5 years ago

1.2.0

5 years ago

1.1.0

5 years ago

1.0.0

5 years ago