Skip to content
CodeSpider
GitHub

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 Gitea user (for example, codespider).
  2. Add codespider as a collaborator (or organization team member with Read repository access + Write to Pull Requests / Issues) on the repositories you want reviewed.
  3. Log in as codespider → Settings → Applications → Generate New Token with scopes:
    • read:repository
    • write:issue
    • write:repository (needed for posting codespider/review commit statuses)
  4. Put the token in gitea.token and set gitea.bot_username: "codespider" in codespider.yaml.

Gitea 1.23.8 repository overview configured with AGENTS.md for CodeSpider

To set an optional avatar, use the bot account’s profile settings in Gitea.

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.

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.

Gitea PR #1 thread showing @codespider /help and the live CodeSpider bot reply

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.

Gitea PR #1 conversation showing sticky summary, Mermaid graph, and inline review