Gitea Setup Guide
CodeSpider verifies Gitea’s X-Gitea-Signature and uses the Gitea API to post reviews and statuses. Upstream lists compatible Forgejo through this provider; the recorded walkthrough is Gitea evidence only.
1. Create a Dedicated Bot Account
Section titled “1. Create a Dedicated Bot Account”- Create a dedicated Gitea user (for example,
codespider). - Add
codespideras a collaborator (or organization team member with Read repository access + Write to Pull Requests / Issues) on the repositories you want reviewed. - Log in as
codespider→ Settings → Applications → Generate New Token with scopes:read:repositorywrite:issuewrite:repository(needed for postingcodespider/reviewcommit statuses)
- Put the token in
gitea.tokenand setgitea.bot_username: "codespider"incodespider.yaml.

To set an optional avatar, use the bot account’s profile settings in Gitea.
2. Configure Webhooks
Section titled “2. Configure Webhooks”Add a webhook on your pilot repository (Repo Settings → Webhooks → Add Webhook → Gitea). Start with one repository rather than a site-wide webhook.
| Setting | Value |
|---|---|
| Target URL | The reachable HTTPS /webhook endpoint from the install guide |
| HTTP Method | POST |
| Content Type | application/json |
| Secret | Same value as gitea.webhook_secret in codespider.yaml |
| Trigger On | Custom Events: Pull Request, Issue Comment, Pull Request Comment |
For a local test setup, Gitea may block a private webhook destination. If necessary, allow only the specific private hostname used by the test endpoint instead of relaxing destination checks globally.
3. Test Signed Webhook Delivery
Section titled “3. Test Signed Webhook Delivery”Open a test pull request or comment @codespider /help in its thread. Check the webhook delivery log. A command reply confirms the webhook and bot credentials; it does not exercise the model.

For the first full review, open or update a small test PR. Confirm the summary and codespider/review status refer to the correct commit. Inline comments depend on actual findings. Use the pilot checklist before enabling more repositories.
