The following steps are required to configure PR-Agent for automated review in a GitHub project:
1. Basic configuration
- Adding the Qodo Merge App to the GitHub Marketplace
- Granting applications access to the target repository
- In the project root directory, create the
.pr_agent.tomlconfiguration file
2. Trigger mode configuration
- manual trigger: Type in any PR comment
@pr-agent analyzeisometric instruction - automatic trigger: in
.github/workflows/Create a workflow file under Configuring PR creation/update event triggers
3. Customization of rules
- Setting checking criteria (e.g. complexity thresholds) in configuration files
- Define feedback templates and severity leveling
- Configure ignore rules (e.g., no checks for specific files/directories)
Typical Configuration Example:
[analysis] min_confidence = 0.7 check_security = true [output] format = "markdown" show_snippets = true
Once configured, the system will automatically run the analysis each time a PR is created and present the results as a Markdown comment in the PR discussion forum.
This answer comes from the articlePR Agent: automated pull request analysis toolThe































