Forgejo support is maintained by the community.
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.- Navigate to your Forgejo repository
- Click Settings in the right sidebar
- Select Webhooks
- Click Add Webhook → Forgejo
-
Configure your webhook:
- Target URL: Enter the URL where you want to receive notifications, the URL you set for
API_FORGEJO_CODE_MANAGEMENT_WEBHOOKin your.envfile - HTTP Method: POST
- POST Content Type:
application/json - Trigger On: Select these events:
- Push events
- Pull Request events
- Issue Comment events
- Active: Check
- Target URL: Enter the URL where you want to receive notifications, the URL you set for
- Click Add Webhook
Kodus consumes pull request, push, pull request review comment, and issue comment events.
Push events matter on Forgejo specifically: they are the only event carrying both the previous
and current branch heads, which is how Kodus detects force-pushes and maps a branch back to its
open pull requests. Issue events are discarded on arrival.