https://github.com/unasuke/github-webhook-filter
https://github.com/unasuke/github-webhook-filter
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/unasuke/github-webhook-filter
- Owner: unasuke
- License: mit
- Created: 2022-09-29T15:52:14.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-09-30T15:24:11.000Z (over 3 years ago)
- Last Synced: 2025-03-21T00:15:08.864Z (about 1 year ago)
- Language: TypeScript
- Size: 32.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# github-webhook-filter
This is a Cloudflare Worker that filters GitHub push webhook. On received push event wehbook, if push event to default branch, pass it to successor webhook endpoint. Otherwise, ignore it.
## Secret
### `REPO_GROUP`
```json
[
{
"repo": "owner/repo1",
"webhook": "https://example.com/foo-webhook-endpoint"
},
{
"repo": "owner/repo2",
"webhook": "https://example.com/bar-webhook-endpoint"
}
]
```