1
configuration parameters
Alexey Efimchik edited this page 2026-04-02 10:48:12 +07:00

📋 Configuration and Parameters

📌 Introduction

This section contains complete reference information on all tool configuration parameters. The tool can be configured either via action inputs (in the with: block of your Gitea action) or via environment variables — each input has a corresponding environment variable with the same name in uppercase.

1. Description of parameters

  1. gitea_token → The reviewer's token with read and write permissions for Pull Requests and repositories. This is usually a shared user for all teams. Ask the administrator about this value. As a rule, this is another global environment variable.

  2. anthropic_api_key → API key for using the AI model. You usually need to ask the administrator what global environment variable they have set for your team and use that as the value for this parameter. Each team has its own environment variable.

  3. model / CC_MODEL → Model name to use for the review. You usually need to ask the administrator what global environment variable they have set for your team and use that as the value for this parameter. Each team has its own environment variable.

  4. cc_bgmodel / CC_BGMODEL → Background Claude model to use for lightweight tasks during review.

  5. cc_base_url / CC_BASE_URL → Base URL for the Claude API endpoint. You usually need to ask the administrator what global environment variable they have set for your team and use that as the value for this parameter. Each team has its own environment variable.

  6. cc_metric_url / CC_METRIC_URL → Base URL for the metrics API endpoint. Used for telemetry collection.

  7. server / SERVER → Gitea server URL. Specifies the address of the Gitea instance the tool connects to.

  8. repo_owner / REPO_OWNER → Repository owner name. Specifies who owns the repository being reviewed. Defaults to the owner from the action context.

  9. repo_slug / REPO_SLUG → Repository slug/name. Defaults to the repository name from the action context.

  10. source_branch / SOURCE_BRANCH → Source branch name (with changes). Defaults to GITHUB_HEAD_REF.

  11. source_commit / SOURCE_COMMIT → Commit hash of the source branch.

  12. pr_id / PR_ID → Pull Request ID.

  13. pr_destination_branch / PR_DESTINATION_BRANCH → Destination (target) branch name — the branch into which the PR will be merged.

  14. pr_destination_commit / PR_DESTINATION_COMMIT → Commit hash of the destination branch.

  15. team_name / TEAM_NAME → Reserved team name for telemetry and metrics attribution. It is important to set a value from a clearly defined list.

  16. log_level / LOG_LEVEL → Logging level. Not usually used. Only if some kind of monitoring is required.

  17. options_type / OPTIONS_TYPE → Value for determining the location of settings. Usually used to specify the location of settings for overriding the built-in review prompt.

  18. cc_prompt / CC_PROMPT → Custom prompt override for the AI review. Required when using options_type: arguments.

  19. cc_allowed_tool / CC_ALLOWED_TOOL → List of permitted tools for the AI agent. Required when using options_type: arguments.

  20. cc_disallowed_tool / CC_DISALLOWED_TOOL → List of forbidden tools for the AI agent. Required when using options_type: arguments.

  21. enable_reviewer_verification / ENABLE_REVIEWER_VERIFICATION → Value true or false. If not specified, the value true is used. Allows you to disable validation of Pull Request and reviewer presence. Useful when using an overridden value of the options_type parameter.