Configuration File
The configuration file allows you to adjust the various tools and sub-tools used by Qodo.
Configuration file example
An example configuration file can be found in our GitHub repository.
Avoid copying the entire configuration file. Only use the configurations you need.
Tip: edit only what you need. Keep your configuration file minimal by only editing the relevant settings.
Avoid copying the entire configuration. This could cause issues when defaults change over time.
How to 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:
If you set in .pr_agent.toml:
Then you can give a list of extra instructions to the review tool, which it will follow when it runs.
See the Tools Guide for a detailed description of the different tools and their configurations.
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
How to create a wiki configuration file
Enable wiki page (see here for instructions)
Edit a new page called
.pr_agent.toml. and make sure it begins with three "`" followed by: "toml"Add any configuration parameters you'd like.
Save the page. Configuration takes effect immediately.
Local configuration file
How to create a local configuration file
Create a file called
.pr_agent.toml.Edit any configuration parameter you'd like.
Upload the file to the root of the default branch in your repository.
The configuration will take effect after being merged into your repository.
Global configuration file
How to create a global configuration file
Create a repository named
pr-agent-settingsin your organization.In the repository
pr-agent-settings, create a file called.pr_agent.toml.Edit any configuration parameter you'd like.
Upload the file to the root of the default branch in the repository.
The configuration will take effect after being merged into your repository.
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
How to create a project/group configuration file
Create a repository named
pr-agent-settingswithin a specific project (Bitbucket, Azure DevOps) or a group/subgroup (Gitlab).In the repository
pr-agent-settings, create a file called.pr_agent.toml.Edit any configuration parameter you'd like.
Upload the file to the root of the default branch in the repository.
The configuration will take effect after being merged into your repository.
The configuration file in this repository will apply to all repositories directly under the same project/group/subgroup.
Organization level configuration file
How to create an organization configuration file
Setting up organization-level global configuration:
For Bitbucket: Create a new project named
PR_AGENT_SETTINGSwith project keyPR_AGENT_SETTINGS. For Azure DevOps: Create a new project namedpr-agent-settingsInside this project, create a repository called
pr-agent-settings.Add a
.pr_agent.tomlconfiguration file to the repository (similar to the global configuration described above).Optionally, you can add an organizational-level global best practices file.
All repositories across your organization will inherit configurations from this file.
Last updated