-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Open
Labels
Description
Git provider (optional)
GitHub
System Info (optional)
We're using this in GitHub Actions to review PRs on every push. See config:
GitHub Action
name: PR Agent Review
on:
pull_request:
types: [opened, reopened, synchronize, ready_for_review]
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
pr_agent:
name: PR Agent Review
timeout-minutes: 3
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
permissions:
id-token: write
issues: write
pull-requests: write
contents: read
steps:
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@61815dcd50bd041e203e49132bacad1fd04d2708
with:
role-to-assume: ${{ secrets.PR_AGENT_OIDC_ROLE_ARN }}
aws-region: us-west-2
- name: Run PR-Agent
uses: qodo-ai/pr-agent@d36ad319f7fb0049205017405a71275c41599587
env:
config.model: "bedrock/anthropic.claude-sonnet-4-5-20250929-v1:0"
config.fallback_models: '["bedrock/anthropic.claude-sonnet-4-5-20250929-v1:0"]'
litellm.model_id: "us.anthropic.claude-sonnet-4-5-20250929-v1:0"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
github_action_config.auto_review: "true"
github_action_config.auto_describe: "true"
github_action_config.auto_improve: "true"
github_action_config.pr_actions: '["opened","reopened","synchronize","ready_for_review"]'TOML Config
[pr_code_suggestions]
# Enable inline code suggestions on specific lines (GitHub suggestion format)
commitable_code_suggestions = true
# Number of suggestions per chunk
num_code_suggestions_per_chunk = 4
[pr_reviewer]
# Extra instructions for the reviewer
extra_instructions = """
<OMITTED FOR BREVITY>
"""Issues details
A PR may get rebased/re-pushed a few times during it's lifecycle. Each time it does Qodo will re-run and it comments the same code suggestions over-and-over adding noise. We often reply to these code suggestions, add a thumbs down, or hit "resolve" as a way to indicate to other people reviewing the PR we're ignoring this code suggestion.
When we push our PR again re-triggering the action, it will add duplicates of all the code suggestions it already mentioned from the previous push if we elected not to implement them.
It would be optimal if Qodo had context of it's previous set of code suggestions instead of adding duplicate code suggestions.