Skip to content

Webhooks

Events with GitHub's payload shape, signed, retried, and logged.

Applies to EngineCloud
View as Markdown
On this page
  1. Checking the signature
  2. Delivery

A webhook sends an HTTPS POST to your address when something happens.

EventWhen
pushcommits pushed to a branch or tag
pull_request, pull_request_reviewopened, updated, reviewed, merged, closed
issues, issue_commentopened, edited, closed, commented
create, deletea branch or tag created or deleted
release, statusa release published; a check reported
case_linkeda commit, issue or pull request linked to a use case

Payloads follow GitHub’s shape wherever an equivalent exists, so most existing tools work unchanged.

Checking the signature

Each delivery carries X-Sypnia-Signature-256: an HMAC-SHA256 of the body with your webhook’s secret (also sent as X-Hub-Signature-256).

TypeScript
import { verifyWebhook } from '@sypnia/git/webhooks';
const event = verifyWebhook(rawBody, request.headers, process.env.WEBHOOK_SECRET!); // throws if the signature is wrong

Delivery

Ten seconds to answer with a 2xx; otherwise it is retried with backoff for 24 hours. Every delivery is logged with its response, and can be sent again.

  1. Checking the signature
  2. Delivery

    Search pages, sections and terms