Skip to content

isabella232/webhook-filter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

{
	"secret": "This is a secret.",
	"webhook": "https://some-webhook.site/webhook",
	"blacklist": {
		"someone/some-repo": ["some-branch", "some-other-branch"],
		"someone/cooler-repo": ["any/.*"]
	}
}

About

Filters out push events for specific repositories/branches from a GitHub webhook

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%