Forgejo support is maintained by the community.
write:repository scope on the token. If it didn’t happen, Repositories lists the repository with the reason, and you can set the webhook up manually:
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
- Open the repository’s Settings tab
- Select Webhooks
- Click Add webhook → Forgejo
-
Configure your webhook:
- Target URL: Enter the URL you set for
API_FORGEJO_CODE_MANAGEMENT_WEBHOOKin your.envfile (it ends with/forgejo/webhook) - HTTP method: POST
- POST content type:
application/json - Trigger on: Custom events, then select:
- Repository events: Push
- Pull request events: Modification, Synchronized and Comments
- Active: Check
- Target URL: Enter the URL you set for
- Click Add webhook
Forgejo delivers pull request comments as
issue_comment, and Kodus acts on pull_request, push and issue_comment deliveries. Of the pull request events it acts on opened, synchronized, reopened and closed; Synchronized is what delivers new commits on a pull request.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.