Skip to content

Commit 86eaa6d

Browse files
authored
ci: use lambdaclass/actions reusable workflows for AI review (#69)
## Summary - Consolidate three separate AI review workflows into a unified workflow using reusable workflows from lambdaclass/actions - Rename prompt file to match standardized naming convention - Enable on-demand reviews via `/kimi`, `/codex`, `/claude` commands ## Changes - Add `.github/workflows/ai-review.yml` - unified workflow using lambdaclass/actions@v1 - Rename `.github/prompts/pr_review.md` → `ai-review.md` - Remove legacy workflows: `pr_review_chatgpt.yaml`, `pr_review_claude.yaml`, `pr_review_kimi.yaml` ## Test plan - [ ] Verify workflow runs on PR open/ready_for_review - [ ] Test on-demand review commands (`/kimi`, `/codex`, `/claude`) - [ ] Confirm all three AI reviewers execute in parallel - [ ] Validate custom prompt is read from new location
1 parent 9325f73 commit 86eaa6d

File tree

5 files changed

+36
-210
lines changed

5 files changed

+36
-210
lines changed
File renamed without changes.

.github/workflows/ai-review.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# AI Code Review using lambdaclass/actions reusable workflows
2+
#
3+
# Triggers:
4+
# - Automatically on PR open/ready_for_review
5+
# - On-demand via PR comments: /kimi, /codex, /claude (requires write access)
6+
#
7+
# Custom prompt: .github/prompts/ai-review.md
8+
#
9+
# Required secrets:
10+
# - KIMI_API_KEY: For Kimi reviews (https://platform.moonshot.ai/)
11+
# - OPENAI_API_KEY: For Codex reviews (https://platform.openai.com/)
12+
# - ANTHROPIC_API_KEY: For Claude reviews (https://console.anthropic.com/)
13+
14+
name: AI Code Review
15+
16+
on:
17+
pull_request:
18+
types: [opened, ready_for_review]
19+
issue_comment:
20+
types: [created]
21+
22+
jobs:
23+
kimi-review:
24+
uses: lambdaclass/actions/.github/workflows/ai-review-kimi.yml@v1
25+
secrets:
26+
KIMI_API_KEY: ${{ secrets.KIMI_API_KEY }}
27+
28+
codex-review:
29+
uses: lambdaclass/actions/.github/workflows/ai-review-codex.yml@v1
30+
secrets:
31+
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
32+
33+
claude-review:
34+
uses: lambdaclass/actions/.github/workflows/ai-review-claude.yml@v1
35+
secrets:
36+
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}

.github/workflows/pr_review_chatgpt.yaml

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

.github/workflows/pr_review_claude.yaml

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

.github/workflows/pr_review_kimi.yaml

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

0 commit comments

Comments
 (0)