Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/arddluma/gh-pull-request-monitor
Simple tool to monitor public repos that you don't control
https://github.com/arddluma/gh-pull-request-monitor
github github-slack-bot pull-requests pull-requests-monitor
Last synced: 10 days ago
JSON representation
Simple tool to monitor public repos that you don't control
- Host: GitHub
- URL: https://github.com/arddluma/gh-pull-request-monitor
- Owner: arddluma
- License: mit
- Created: 2023-04-01T14:08:25.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-04-02T14:15:27.000Z (over 1 year ago)
- Last Synced: 2024-05-29T17:28:40.631Z (6 months ago)
- Topics: github, github-slack-bot, pull-requests, pull-requests-monitor
- Language: Python
- Homepage:
- Size: 2.93 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GitHub Pull Request Monitor
This tool makes it easy to track pull requests and send Slack notification for public GitHub repositories that are not under your control.
# Requirements
Set the variables such as:owner = "GITHUB_USERNAME" (GitHub username of repo owner. e.g `arddluma`)
repo = "GITHUB_REPO" (GitHub repo name. e.g `gh-pull-request-monitor`)
api_key = "GITHUB_API_KEY" (Recommended: Create fine-grained token with `Public Repositories (read-only)` access or use `Tokens(classic)` *(not recommended)*)
slack_webhook_url = "SLACK_WEBHOOK_URL" (Slack incoming webhook webhook url)
Optional: time.sleep(60) = Change API polling period (in seconds)
# Run
Clone:
`git clone https://github.com/arddluma/gh-pull-request-monitor.git`Script should run in background
*There are multiple ways to run python script in background, here is the list of some of them*
Use [pm2](https://www.npmjs.com/package/pm2) process manager
`pm2 start --name "PRMonitor" monitor.py --interpreter=python3`
or
`python3 monitor.py &`or
`nohup python3 monitor.py &`or
`screen python3 monitor.py`