admin:repo_hook on a classic token, or Webhooks: Read and write on a fine-grained token. If the token lacks it, Repositories lists the repository with the reason, and you can create the webhook by hand as follows.
With the GitHub App there is no per-repository webhook: events come from the App’s own webhook. See Creating a GitHub App.
Webhook URLs must reach the Webhooks service (port 3332). Using the API domain only works if your reverse proxy routes
/.../webhook paths to the webhooks service.- Head over to your GitHub repository
- Click on “Settings”
- Find “Webhooks” in the left sidebar
- Click “Add webhook”
-
Configure your webhook:
- Payload URL: Enter the URL from your
.envfile:API_GITHUB_CODE_MANAGEMENT_WEBHOOK(it ends with/github/webhook) - Content type:
application/json - Secret: Leave blank
- SSL verification: Enable SSL verification
- Which events would you like to trigger this webhook?: Let me select individual events
- Check these boxes:
- Issue comments
- Pull request review comments
- Pull requests
- Payload URL: Enter the URL from your
- Click “Add webhook”
These are the only events a token integration uses. Kodus ignores the others, such as pushes, pull request reviews and review threads, so selecting them only adds traffic.