Skip to content

Commit b1a4136

Browse files
n24q02mclaude
andauthored
feat: migrate code review from Qodo to CodeRabbit (#426)
- Remove ai_pr_review job (Qodo/pr-agent + Vertex AI WIF) from ci.yml - Remove issue_comment trigger from ci.yml (CodeRabbit uses webhook) - Remove .pr_agent.toml - Add .coderabbit.yaml with contributor-only review config: ignore_usernames for owner + 5 bot accounts, issue enrichment enabled, chat disabled Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent cff4dd7 commit b1a4136

3 files changed

Lines changed: 23 additions & 61 deletions

File tree

.coderabbit.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
language: "en-US"
2+
reviews:
3+
auto_review:
4+
enabled: true
5+
drafts: false
6+
ignore_usernames:
7+
- "n24q02m"
8+
- "dependabot[bot]"
9+
- "renovate[bot]"
10+
- "github-actions[bot]"
11+
- "devin-ai-integration[bot]"
12+
- "google-labs-jules[bot]"
13+
profile: "chill"
14+
request_changes_workflow: false
15+
high_level_summary: true
16+
auto_incremental_review: true
17+
issue_enrichment:
18+
auto_enrich:
19+
enabled: true
20+
planning:
21+
enabled: true
22+
chat:
23+
auto_reply: false

.github/workflows/ci.yml

Lines changed: 0 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,6 @@ on:
1717
- ready_for_review
1818
push:
1919
branches: [main]
20-
issue_comment:
21-
types:
22-
- created
23-
- edited
2420
issues:
2521
types:
2622
- opened
@@ -103,60 +99,6 @@ jobs:
10399
comment-summary-in-pr: always
104100
allow-ghsas: GHSA-w8v5-vhqr-4h9v # diskcache pickle - no patch, transitive dep of llama-cpp-python
105101

106-
ai_pr_review:
107-
name: Qodo AI Code Review
108-
if: >-
109-
(
110-
github.event_name == 'issue_comment'
111-
&& github.event.sender.type != 'Bot'
112-
) || (
113-
github.event_name == 'pull_request_target'
114-
&& github.event.sender.type != 'Bot'
115-
&& github.event.pull_request.user.login != 'n24q02m'
116-
)
117-
runs-on: ubuntu-latest
118-
permissions:
119-
issues: write
120-
pull-requests: write
121-
contents: read
122-
id-token: write
123-
steps:
124-
- name: Checkout repo
125-
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
126-
127-
- name: Load custom instructions
128-
run: |
129-
if [ -f ".github/best_practices.md" ]; then
130-
INSTRUCTIONS=$(cat .github/best_practices.md)
131-
RANDOM_EOF=$(dd if=/dev/urandom bs=15 count=1 status=none | base64)
132-
echo "CUSTOM_INSTRUCTIONS<<$RANDOM_EOF" >> "$GITHUB_ENV"
133-
echo "$INSTRUCTIONS" >> "$GITHUB_ENV"
134-
echo "$RANDOM_EOF" >> "$GITHUB_ENV"
135-
fi
136-
137-
- name: Authenticate to GCP (Vertex AI)
138-
uses: google-github-actions/auth@7c6bc770dae815cd3e89ee6cdf493a5fab2cc093 # v3
139-
with:
140-
workload_identity_provider: ${{ vars.VERTEX_WIF_PROVIDER }}
141-
service_account: ${{ vars.VERTEX_SERVICE_ACCOUNT }}
142-
143-
- name: PR Agent action step
144-
uses: qodo-ai/pr-agent@d82f7d3e696cd00822694aaa3096265d3889f3f1
145-
env:
146-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
147-
VERTEXAI_PROJECT: ${{ vars.VERTEX_PROJECT }}
148-
VERTEXAI_LOCATION: global
149-
PR_REVIEWER__EXTRA_INSTRUCTIONS: ${{ env.CUSTOM_INSTRUCTIONS }}
150-
PR_CODE_SUGGESTIONS__EXTRA_INSTRUCTIONS: ${{ env.CUSTOM_INSTRUCTIONS }}
151-
PR_DESCRIPTION__EXTRA_INSTRUCTIONS: ${{ env.CUSTOM_INSTRUCTIONS }}
152-
GITHUB_ACTION_CONFIG__AUTO_REVIEW: "true"
153-
GITHUB_ACTION_CONFIG__AUTO_DESCRIBE: "true"
154-
GITHUB_ACTION_CONFIG__AUTO_IMPROVE: "true"
155-
GITHUB_ACTION_CONFIG__HANDLE_PR_ACTIONS: '["opened", "reopened", "ready_for_review", "synchronize"]'
156-
157-
# ============================================================================
158-
# Email Notification (External Contributors)
159-
# ============================================================================
160102
email-notify:
161103
name: Email Notification
162104
if: >-

.pr_agent.toml

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)