Skip to content

Commit cb909f2

Browse files
ENH: Add Qodo PR-Agent workflow using Google Gemini (#1089)
* ENH: Add Qodo PR-Agent workflow using Google Gemini * FIX: point PR Agent workflow at the renamed action repo Codium-ai/pr-agent-action no longer exists (the project moved to the-pr-agent/pr-agent), which made the "Run PR Agent" check fail with "Unable to resolve action". Updates the action reference, grants the contents: write permission it now requires, and sets the Gemini key via the GOOGLE_AI_STUDIO.GEMINI_API_KEY env var per the new action's docs.
1 parent 3656d2a commit cb909f2

2 files changed

Lines changed: 51 additions & 0 deletions

File tree

‎.github/workflows/pr_agent.yml‎

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Qodo PR-Agent Gemini Reviewer
2+
3+
on:
4+
pull_request:
5+
types: [opened, synchronize, reopened]
6+
issue_comment:
7+
types: [created]
8+
9+
jobs:
10+
pr_agent_job:
11+
runs-on: ubuntu-latest
12+
permissions:
13+
issues: write
14+
pull-requests: write
15+
contents: write
16+
name: Run PR Agent
17+
steps:
18+
- name: PR Agent Action
19+
uses: the-pr-agent/pr-agent@main
20+
env:
21+
GOOGLE_AI_STUDIO.GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
22+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

‎.pr_agent.toml‎

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
[config]
2+
model = "gemini/gemini-2.5-pro"
3+
fallback_models = ["gemini/gemini-2.0-flash"]
4+
git_provider = "github"
5+
6+
[pr_reviewer]
7+
extra_instructions = """
8+
Follow RocketPy repository standards when reviewing code:
9+
1. Code Style:
10+
- Use PEP 8 conventions with a maximum line length of 88 characters.
11+
- Use snake_case for functions, methods, and variables.
12+
- Use PascalCase for class names and UPPER_SNAKE_CASE for constants.
13+
- Public classes, methods, and functions must include NumPy-style docstrings with explicit SI units.
14+
2. Architecture & Domain Models:
15+
- Feature logic must remain within package boundaries (simulation, rocket, motors, environment, mathutils, plots, prints).
16+
- Position and reference frame arguments must explicitly state orientation/origin (e.g. tail_to_nose, nozzle_to_combustion_chamber).
17+
3. Testing & Backward Compatibility:
18+
- New functionality or bug fixes must be accompanied by unit tests in `tests/`.
19+
- Preserve backward compatibility across the public API exported in `rocketpy/__init__.py`.
20+
4. Pull Request Conventions:
21+
- Verify PR title is prefixed with project acronyms (e.g., BUG, DOC, ENH, MNT, TST, BLD, REL, REV, STY, DEV).
22+
"""
23+
enable_auto_checks_and_labels = true
24+
25+
[pr_description]
26+
publish_labels = true
27+
28+
[pr_code_suggestions]
29+
num_code_suggestions = 4

0 commit comments

Comments
 (0)