Event subscriptions (webhooks)

A subscription sends repository events to your address on the internet; the body is signed with HMAC-SHA256 using a secret that is shown once.

Who can use this The repository owner.

Updated Copy as Markdown
In this article

Subscribe an address#

  1. Settings → Event subscriptions.
  2. Enter an address like https://your-server/hook. The address must be reachable from the internet: requests are never sent into an internal network.
  3. Press Subscribe. SKILLOK shows the signing secret once — copy it. A new subscription receives all events; which ones to send can be narrowed down with Edit.

Besides files, branches, pushes and releases there are discussion events: an issue opened, closed, reopened, assigned (issues.*), the same for pull requests (pull_request.*; a merge is pull_request.closed with "merged": true), a reply in a discussion (issue_comment.created) and a review (pull_request_review.submitted). No ticked events means all events, including those added later.

Verify the signature#

Every delivery carries an X-Skillok-Signature-256 header — the HMAC-SHA256 of the body computed with the secret. Check it on your side and drop anything that does not match.

Watch the deliveries#

Each subscription in the list shows the state of the last delivery: «last delivery: 200» or «failed: …». A subscription can be paused and resumed, its address and events edited, and it can be removed.

Under the subscription are Recent deliveries: the event, your server's response code, when and how long it took. The log is kept for 30 days. The Redeliver button sends the same delivery again — the same body and the same X-Skillok-Delivery, so a server that drops repeats by number drops it too. Retries after a failure happen by themselves: five attempts with a growing pause.

Was this helpful?