https://github.com/discordjs/webhook-filter
Filters out push events for specific repositories/branches from a GitHub webhook
https://github.com/discordjs/webhook-filter
Last synced: 5 months ago
JSON representation
Filters out push events for specific repositories/branches from a GitHub webhook
- Host: GitHub
- URL: https://github.com/discordjs/webhook-filter
- Owner: discordjs
- License: apache-2.0
- Archived: true
- Created: 2018-01-19T05:46:39.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-05-19T17:19:29.000Z (about 4 years ago)
- Last Synced: 2024-04-14T04:18:41.924Z (about 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 53.7 KB
- Stars: 10
- Watchers: 9
- Forks: 6
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# webhook-filter
This is a simple application that filters out push events for specific branches of specific repositories from a GitHub
webhook, forwarding all others to another destination.## Configuration
All configuration is specified in a `config.json` file in the current working directory when launching the application.
The blacklist contains repo names and their corresponding blacklisted branches where each branch is a regex pattern. If any pattern for a given repo matches, the push event will not be forwarded to the configured webhook URL.### Example
```json
{
"secret": "This is a secret.",
"webhook": "https://some-webhook.site/webhook",
"blacklist": {
"someone/some-repo": ["some-branch", "some-other-branch"],
"someone/cooler-repo": ["any/.*"]
}
}
```