GitHub webhook handler
POST
/webhooks/github
const url = 'https://example.com/api/webhooks/github';const options = {method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/webhooks/github \ --header 'Content-Type: application/json' \ --data '{}'Handles push, deployment_status, workflow_run, and issues events. HMAC verified.
Request Body required
Section titled “Request Body required ” Media type application/json
object
Responses
Section titled “ Responses ”Success
Media type application/json
object
ok
required
boolean
Invalid HMAC signature