Git Integration for Jira Cloud Documentation

Contact support
GitKraken Status  

GitHub webhook events

The following are the supported types of GitHub events for triggering webhooks:

GitHub (Push Events)

Type
pushEvents: "^push$"

Request URI
/api/1/webhook/reindex/install/<secret_key>/web

Request headers
Content-type: application/x-www-form-urlencoded
X-GitHub-Event: push

Request payload example

*{
  ...
  "repository": {
    "id": 224819315,
    "git_url": "git://github.com/acme/test1.git",
    "ssh_url": "[email protected]:acme/test1.git",
    "clone_url": "https://github.com/acme/test1.git",
    "svn_url": "https://github.com/acme/test1",
  },
  ...
}

GitHub (Pull Request Events)

Type
pullRequestEvents: "^pull_request$"

Request URI
/api/1/webhook/reindex/install/<secret_key>/web

Request headers
Content-type: application/x-www-form-urlencoded
X-GitHub-Event: pull_request

Request payload

*{
  ...
  "repository": {
    "id": 224819315,
    "git_url": "git://github.com/acme/test1.git",
    "ssh_url": "[email protected]:acme/test1.git",
    "clone_url": "https://github.com/acme/test1.git",
    "svn_url": "https://github.com/acme/test1",
  },
  ...
}

GitHub (Repository Events)

Type
repositoryEvents: “^repository$”

Request URI
/api/1/webhook/reindex/install/<secret_key>/web

Request headers
Content-Type: application/x-www-form-urlencoded
X-GitHub-Event: repository

Request payload

*{
  ...
  "repository": {
    "id": 224819315,
    "git_url": "git://github.com/acme/test1.git",
    "ssh_url": "[email protected]:acme/test1.git",
    "clone_url": "https://github.com/acme/test1.git",
    "svn_url": "https://github.com/acme/test1",
  },
  ...
}

Other webhook type events

GitLab webhook events

Microsoft webhook events

AWS CodeCommit webhook events

Bitbucket webhook events

Have feedback about this article? Did we miss something? Let us know!
On this page