https://github.com/sectorlabs/github-hawk
GitHub repository events monitor
https://github.com/sectorlabs/github-hawk
Last synced: 11 months ago
JSON representation
GitHub repository events monitor
- Host: GitHub
- URL: https://github.com/sectorlabs/github-hawk
- Owner: SectorLabs
- License: mit
- Created: 2021-03-02T17:23:26.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-03-03T13:59:14.000Z (over 5 years ago)
- Last Synced: 2025-06-10T07:43:42.631Z (about 1 year ago)
- Language: JavaScript
- Homepage: https://www.sectorlabs.ro/blog/2021/3/8/test-driving-cloudflare-workers-with-a-github-public-repository-monitor
- Size: 3.91 KB
- Stars: 0
- Watchers: 22
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GitHub hawk - a public repo monitor
Cloudflare worker that processes GitHub repository webhooks and forwards the interesting ones through a Slack hook:
* New public repository is created (`created` action with `private` set to `false`)
* Private repo has been made public (`publicized` action)
## How to run
* Deploy to Cloudflare with `wrangler publish`
* Add a hook at GitHub organization level that is triggered for `repository` events (only `created` and `publicized` are used)
* Set the correct `GITHUB_HOOK_SECRET`
* Set the correct `SLACK_HOOK_URL`
For more information, see the [Cloudflare Workers CLI documentation](https://developers.cloudflare.com/workers/).