- Review behavior
- Feedback presentation
- Automation
- Feature-level settings
Example configuration
Configuration using pr_agent.toml
File-based configuration can be defined at repository, project/group, or organization levels. Each level may have platform-specific setup patterns.
Repository level
Repository root configuration
GitHubGitLabBitbucketAzure DevOps
Create a local configuration file.
1
Create a file named
.pr_agent.toml.2
Add the desired configuration settings.
3
Commit the file to the root of the default branch.
Wiki configuration
GitHubGitLabBitbucket CloudAzure DevOps
Create a wiki configuration.
1
Enable the repository wiki. Learn more here.
2
Create a new wiki page named
.pr_agent.toml.3
Ensure the page begins with a fenced TOML block.
4
Add any configuration parameters you need.
5
Save the page.
Project or group-level configuration
GitLabBitbucket Data CenterAzure DevOps
Create a project or group configuration.
1
Create a repository named
pr-agent-settings within:- A project (Bitbucket, Azure DevOps), or
- A group or subgroup (GitLab).
2
Add a
.pr_agent.toml file to the root of the default branch.3
Define the configuration settings.
GitLab:For repositories nested in multiple subgroups, Qodo looks only one level up for a
pr-agent-settings repository.Organization-level configuration
Cloud platforms
GitHubGitLab CloudBitbucket Cloud
Create a global configuration file.
1
Create a repository named
pr-agent-settings in your organization.2
Add a
.pr_agent.toml file to the root of the default branch.3
Define organization-wide defaults.
- Takes effect for pull requests created after the change is merged.
- Applies to all repositories in the organization unless overridden by a local or wiki configuration.
Enterprise environments
Bitbucket Data CenterAzure DevOps
All repositories in the organization inherit settings from this configuration.
Create organization-level configuration.
1
Create a project named:
PR_AGENT_SETTINGSwith project keyPR_AGENT_SETTINGS(Bitbucket Data Center), orpr-agent-settings(Azure DevOps).
2
Inside that project, create a repository named
pr-agent-settings.3
Add a
.pr_agent.toml file to the repository.For a full list of configuration options and which TOML section each belongs to, see Configuration and Command Reference.