Skip to content

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

License

Notifications You must be signed in to change notification settings

CarmJos/MergeBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Topics

Resources

License

Stars

Watchers

Forks

Languages