Tool built in Go for verifying the integrity of GitHub web hooks and providing the option to delete web hooks based off of multiple parameters.
export WEBHOOKIT_API_KEY=<api-key>Ensure api key has privileges to modify web hooks in your repositories.go build./webhookit <action> [options]
--cCheck repos for broken webhooks. Cannot be used along with -destroy.--dDestroy broken webhooks. Cannot be used along with -check.
-f <string>File path of JSON file containing repos. Uses filepath as argument. Cannot be used along with -repo.-r <string>A single specified repo using the syntax namespace/repo. Cannot be used along with -filepath.-t <string>CSV list of HTTP status code types to destroy e.g. 2XX, 501 e.g. 2XX, 501 ornoneto disable HTTP status code matching (default "3XX,4XX,5XX").-b <string>Backup webhooks to JSON file. Uses filepath as argument.-dsInclude duplicates webhooks when destroying.-lList hooks to be destroyed before confirmation.-uInclude untriggered webhooks when destroying.
With the -ds option specified, a dialog will appear on encountering a duplicate. This shows a diff of all the duplicates found for that particular webhook and then allows you to choose which webhooks to destroy, through the use of a CSV list.
{
"repos": [
{
"name": "eimlav/api-testing"
}
]
}