Github Pull Request Auto Merge Command Line Tool
# using npmnpm install -g github-pr-auto-merge# using yarnyarn global add github-pr-auto-merge
prautomerge command could be found under your
> prautomergeOptions:--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
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:
- public_repo | admin:org (for private or collaborative projects)