For AI agents: the complete documentation index is available at https://docs.hod.sh/llms.txt, the full documentation bundle is available at https://docs.hod.sh/llms-full.txt, and this page is available as Markdown at https://docs.hod.sh/self-hosting/forges/forgejo.md.

Forgejo and Gitea

Forgejo (or Gitea) can start runs on every push and pull request, and shows a status per job on the commit.

  1. Set HOD_FORGEJO_URL, HOD_FORGEJO_TOKEN (an API token that may write commit statuses) and HOD_FORGEJO_WEBHOOK_SECRET (32+ characters).
  2. Add a webhook to the repository: URL <HOD_PUBLIC_URL>/api/v1/orgs/default/webhooks/forgejo, content type JSON, that secret, push and pull request events.

The pipeline's on: decides which events start runs. hod webhook deliveries shows what each webhook did, and why one started no run. Repositories may be private: the server reads them with its token, and runners clone through the server, so the token never leaves it. Pull requests from forks don't run yet.