/MergeBot

A simple python script to merge all filtered PRs in a GitHub user/org/repository.

Primary LanguagePythonGNU Lesser General Public License v3.0LGPL-3.0

MergeBot

A simple python script to merge all filtered PRs in a GitHub user/org/repository.

Example

Usage

  1. Download the src/run.py file.
  2. Install the PyGithub library.
     $ pip install PyGithub tqdm colorama
    or install the required packages from the requirements.txt file.
     $ pip install -r requirements.txt
  3. Replace ACCESS_TOKEN with your token in the run.py file.
  4. Run the script with the following command:
    $ python run.py <user/org> [repo]

Tip

You can rewrite the def pr_filter(pr) function to filter the PRs you want to merge.

The default filter is to merge PRs that submitted by @renovate or @dependabot.

Open Source License

This project is licensed under the GNU LESSER GENERAL PUBLIC LICENSE.