Skip to main content
POST
/
webhook
/
github
GitHub webhook
curl --request POST \
  --url http://localhost:3000/webhook/github \
  --header 'Content-Type: application/json' \
  --header 'x-hub-signature-256: <x-hub-signature-256>' \
  --data '
{
  "action": "opened",
  "pull_request": {
    "number": 123,
    "head": {
      "ref": "<string>",
      "sha": "<string>",
      "repo": {
        "clone_url": "<string>",
        "name": "<string>",
        "owner": {
          "login": "<string>"
        }
      }
    },
    "base": {
      "ref": "<string>"
    }
  },
  "repository": {
    "full_name": "<string>",
    "name": "<string>",
    "owner": {
      "login": "<string>"
    }
  }
}
'
{
  "status": "ok"
}

Headers

x-hub-signature-256
string
required

HMAC-SHA256 signature of the request body using the webhook secret.

Example:

"sha256=..."

Body

application/json
action
enum<string>
required
Available options:
opened,
reopened,
synchronize,
closed
pull_request
object
required
repository
object
required

Response

Webhook processed successfully

status
string
Example:

"ok"