Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dessaya/mergebot
Periodically poll a Github pull request and merge it automatically if all checks pass
https://github.com/dessaya/mergebot
Last synced: 10 days ago
JSON representation
Periodically poll a Github pull request and merge it automatically if all checks pass
- Host: GitHub
- URL: https://github.com/dessaya/mergebot
- Owner: dessaya
- Created: 2019-02-11T17:10:12.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-02-19T17:31:26.000Z (almost 6 years ago)
- Last Synced: 2024-10-25T15:38:42.597Z (about 2 months ago)
- Language: Python
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# mergebot
Periodically poll a Github pull request and merge it automatically if all
checks pass.## Requirements
* `python3`
## Usage
1. Create a personal access token at `https://github.com/settings/tokens`.
2. `export GITHUB_ACCESS_TOKEN='...'`
* Tip: Save the `export` command in your `.bashrc`.
* Or save it in a file named `env` and before running `mergebot.py`
remember to `source ./env`.
1. `python3 mergebot.py `.
* Example: `python3 mergebot.py https://github.com/owner/repo/pull/1234`The script will poll the PR status every 5 minutes. It will notify you if the
PR is not mergeable or if some checks have failed. If the PR is mergeable, it
will merge it and quit.