This repository contains the backend code for the DisGitHook project.
It contains the API for the website and the code for handling webhooks.
GET
/GET
/loginGET
/logoutGET
/serversGET
/servers/:id/hooksPOST
/servers/:id/hooksPOST
/servers/:id/hooks/:hookDELETE
/servers/:id/hooks/:hookPOST
/servers/:id/hooks/:hook/regen
POST
/hook/:id & Authorization headerPOST
/hook/:id/:secret
All sent data is from the GitHub webhook documentation.
Exceptions:
ping
event is not sentregistry_package
event has no templates in favor of thepackage
event as recommended by GitHubrepository_vulnerability_alert
because it is deprecated in favor ofdependabot_alert
as recommended by GitHubteam_add
because theadded_to_repository
action fromteam
is the samerepository_dispatch
has no template because it is not used for webhooksrequested_action
andrerequested
actions of thecheck_run
event because they are not used for webhooksrequested
andrerequested
actions of thecheck_suite
event because they are not used for webhooksproject_card
,project
andproject_column
have no templates due to being deprecated (Projects "Classic")secret_scanning_alert_location
as it only triggers on issuessecret_scanning_alert
already triggers ondeleted
action ofrepository
as it is not used for webhooks
- Top level:
{{variable}}
or{{ variable }}
- Below:
{{ variable.data }}
- Array length:
{{ count(variable.data) }}
- Ternary:
{{ variable.data ? Yes : No }}
- OR:
{{ variable.data || No }}
- Double spaces are removed