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:
pingevent is not sentregistry_packageevent has no templates in favor of thepackageevent as recommended by GitHubrepository_vulnerability_alertbecause it is deprecated in favor ofdependabot_alertas recommended by GitHubteam_addbecause theadded_to_repositoryaction fromteamis the samerepository_dispatchhas no template because it is not used for webhooksrequested_actionandrerequestedactions of thecheck_runevent because they are not used for webhooksrequestedandrerequestedactions of thecheck_suiteevent because they are not used for webhooksproject_card,projectandproject_columnhave no templates due to being deprecated (Projects "Classic")secret_scanning_alert_locationas it only triggers on issuessecret_scanning_alertalready triggers ondeletedaction ofrepositoryas 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
