Page:
reviewer token
Pages
Home
ai reviewer output format
bb configuration parameters
bb extension of rules
bb faq troubleshooting
bb how to integrate
bb how to use
bb limitations and best practices
bb overriding rules
bb placeholder system
bb review template performance
bb review template security
bb review template tech writer
configuration parameters
extension of rules
faq troubleshooting
how to integrate
how to use
limitations and best practices
local kodo tool
local overriding settings
overriding rules
placeholder system
review template performance
review template security
review template tech writer
reviewer token
Clone
2
reviewer token
Alexey Efimchik edited this page 2026-03-12 18:36:34 +07:00
⚙️ Gitea Token Setup for AI Code Reviewer
🔑 Required Token Permissions
| Permission | Level | Reason |
|---|---|---|
| repository | Read and Write | Read PR details, branches, diff; post review comments |
| issue | Read and Write | Create and delete progress comments on PRs (Gitea treats PR comments as issues internally) |
| user | Read | Fetch current bot user info to verify reviewer assignment |
All other permissions (activitypub, misc, notification, organization, package) should be set to No Access.
🛠️ How to Generate the Token
- Log in to Gitea as the bot account that will be assigned as a reviewer
- Go to Settings → Applications (top right avatar → Settings → Applications)
- Under Manage Access Tokens click Generate Token
- Fill in:
- Token Name:
ai-code-reviewer(or any descriptive name) - Expiration: set according to your security policy
- Token Name:
- Set permissions as described in the table above
- Click Generate Token
- Copy the token immediately — it will not be shown again
📦 Adding the Token to Your Repository
- Go to your repository → Settings → Secrets
- Click Add Secret
- Set:
- Name:
CC_GITEATOKEN - Value: paste the token generated above
- Name:
- Click Save
⚠️ Important Notes
- The token must belong to the account that is assigned as a reviewer on pull requests — this is how the reviewer verification check works
- Treat the token as a password — never commit it to the repository
🤖 Kodo AI Reviewer
📚 Gitea
👩💻 Developer
🧑🔧 Tech Lead
- CI/CD Integration
- Extension of Existing Review Rules
- Overriding Review Rules
- Troubleshooting
- Configuration and Parameters
📚 Bitbucket
👩💻 Developer
🧑🔧 Tech Lead
- CI/CD Integration
- Extension of Existing Review Rules
- Overriding Review Rules
- Troubleshooting
- Configuration and Parameters