github-pr-auto-merge

0.1.1 • Public • Published

github-pr-auto-merge Build Status Coverage Status

Github Pull Request Auto Merge Command Line Tool

Installation

# using npm 
npm install -g github-pr-auto-merge
 
# using yarn 
yarn global add github-pr-auto-merge

Usage

After installation, prautomerge command could be found under your $PATH.

> prautomerge
 
Options:
  --repo, -r     github repository                           [string] [required]
  --owner, -o    repository owner                            [string] [required]
  --labels, -l   pull request labels as filter             [array] [default: []]
  --log-level    log level                                     [default: "info"]
  -v, --version  Show version number                                   [boolean]
  --help         Show help                                             [boolean]
 

It uses your git hub token specified in environment variable as GITHUB_TOKEN to connect with your repository and traverses all the open Pull Request(PR)s containing all your specified tags, such as auto-merged, bot and so on. If one of the PRs is able to be merged after approving, this tool will use your github token to approve this PR, merge it and delete the branch it related to.

Note that your GITHUB_TOKEN should have the following access to accomplish auto-merging:

  1. repo:status
  2. public_repo | admin:org (for private or collaborative projects)
  3. write:discussion

Install

npm i github-pr-auto-merge

DownloadsWeekly Downloads

0

Version

0.1.1

License

MIT

Unpacked Size

21.1 kB

Total Files

13

Last publish

Collaborators

  • dawnwords