pr-agent/pr_agent/settings/configuration.toml at main · qodo-ai/pr-agent
Use the configuration file
The configuration file is a file named.pr_agent.toml, which can reside in several locations (see below).
Each Qodo tool has its own specific configuration settings.
For example, the review tool uses parameters from the pr_reviewer section of the configuration file:
.pr_agent.toml:
review tool, which it will follow when it runs.
See the Tools Guide for a detailed description of the different tools and their configurations.
Show relevant configurations:Set
config.output_relevant_configurations=true to display the relevant configurations for each tool.This can help with debugging or give you a better understanding of different configuration options.Possible locations of configuration files
The possible locations of where can one place configuration files are ordered below by precedence (wiki being the highest precedence); if the same setting is defined in configuration files at two locations, the one with the higher precedence will overwrite the setting in the lower precedence.Wiki configuration file
Cloud, Azure DevOps
Create a wiki configuration file
Enable wiki page (see here for instructions)
Local configuration file
, Azure DevOps
Create a local configuration file
Global configuration file
Cloud
Create a global configuration file
The
.pr_agent.toml file in this repository will be used as the global configuration for all other repositories in the organization. Local configurations will always override global ones.
Project/Group level configuration file
Platforms supported: GitLab, Bitbucket Data Center, Azure DevOps
Create a project/group configuration file
Create a repository named
pr-agent-settings within a specific project (Bitbucket, Azure DevOps) or a group/subgroup (Gitlab).For Gitlab, in case of a repository nested in several sub groups, the lookup for a pr-agent-settings repo will be only on one level above such repository.
Organization level configuration file
Platforms supported: Bitbucket Data Center, Azure DevOps
Create an organization configuration file
Setting up organization-level global configuration:For Bitbucket: Create a new project named
PR_AGENT_SETTINGS with project key PR_AGENT_SETTINGS . For Azure DevOps: Create a new project named pr-agent-settingsAdd a
.pr_agent.toml configuration file to the repository (similar to the global configuration described above).Note:If both organization-level and project-level settings are defined, the project-level settings take precedence.A repository’s local
.pr_agent.toml file will always override both global configurations.