The Git Integration for Jira app supports GitHub Organization webhooks. Rather than creating a webhook for each repository manually, configure the webhook at the GitHub Organization level to automatically register webhook for each repository.
To configure GitHub organization webhook:
-
Login to your GitHub account and go to your GitHub Organization.
-
Go to Settings.
-
Under Organization Settings, go to Webhooks.
-
Click Add webhook.
-
Paste the webhook URL into the Payload URL field. (The webhook url is acquired from the Git Integration for Jira Cloud app ➜ Indexing triggers configuration page.)
-
Set the Content type to application/json.
-
Select/enable the “Let me select individual events” option:
-
Select Branch or tag deletion
-
Select Branch or tag creation
-
Select Pull requests
-
Select Pushes
-
-
Click Add webhook to complete this setup.