A simple python script to merge all filtered PRs in a GitHub user/org/repository.
- Download the
src/run.py
file. - Install the PyGithub library.
or install the required packages from the requirements.txt file.
$ pip install PyGithub tqdm colorama
$ pip install -r requirements.txt
- Replace
ACCESS_TOKEN
with your token in therun.py
file.- You can create a token at GitHub/Profile/Tokens.
- 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.
This project is licensed under the GNU LESSER GENERAL PUBLIC LICENSE.