Skip to content
This repository has been archived by the owner on Jul 3, 2021. It is now read-only.
/ webhook-filter Public archive

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

License

Notifications You must be signed in to change notification settings

discordjs/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

Stars

Watchers

Forks

Contributors 4

  •  
  •  
  •  
  •