# Gitea AI Review (Claude) Setup **Last Updated:** 2026-02-10 --- ## Overview The optional AI review workflow uses [markwylde/claude-code-gitea-action](https://github.com/markwylde/claude-code-gitea-action) to automatically review pull requests with Claude. ## Prerequisites 1. **ANTHROPIC_API_KEY** — From https://console.anthropic.com/ 2. **GITEA_TOKEN** — Gitea personal access token with repo read/write ## Setup 1. Add secrets to Gitea (Repo or Org level): - Settings → Secrets and Variables → Actions - Add `ANTHROPIC_API_KEY` - Add `GITEA_TOKEN` 2. Enable Actions on the repository: - Settings → Enable Repository Actions 3. The workflow `.gitea/workflows/ai-review.yml` triggers on PR open/sync ## Usage - **Automated:** Every new PR and each push gets a Claude review - **Manual @claude:** Add a workflow that triggers on `issue_comment` with `@claude` for interactive review ## Optional: Interactive Claude For on-demand review via comment, add to the workflow: ```yaml on: issue_comment: types: [created] pull_request: types: [opened, synchronize] ``` Remove `direct_prompt` to use comment-triggered mode. Then comment `@claude Please review this PR` on any PR.