Git ref updated
Sent when a Git ref is updated in a repository. Each updated ref produces a separate event. The event type is in X-Pierre-Event, not in the JSON body.
Headers
The event type for this delivery.
push Signature in the form t=<unix_timestamp>,sha256=<hex_signature>. Verify HMAC-SHA256 with the subscription secret over the timestamp, a period, and the raw request body. Check the timestamp to reject old deliveries.
Body
The push event payload.
A Git ref update. The X-Pierre-Event header identifies this payload as push; the body has no type field.
The new commit SHA. All zeros for a deleted ref.
The previous commit SHA. All zeros for a newly created ref.
The customer ID that owns the repository.
When the push occurred, as an RFC 3339 timestamp.
The full Git ref name, for example refs/heads/main.
The repository that produced the event.
Response
The receiver accepted the delivery. Return any 2xx status to acknowledge it.