Skip to content

Commit 0c0b56e

Browse files
authored
Refactor environment variable names in PR-Agent workflow
Updated environment variable names for consistency and clarity.
1 parent b5a0995 commit 0c0b56e

1 file changed

Lines changed: 12 additions & 13 deletions

File tree

.github/workflows/pr-agent.yml

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,17 @@ jobs:
1717

1818
steps:
1919
- name: Run PR-Agent
20-
uses: qodo-ai/pr-agent@main
2120
env:
2221
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
23-
24-
OPENAI.KEY: ${{ secrets.OPENAI_KEY }}
25-
OPENAI.API_BASE: "http://localhost:8000/v1"
26-
27-
config.model: "openai/nvidia/NVIDIA-Nemotron-3-Nano-30B-A3B-FP8"
28-
config.model_turbo: "openai/nvidia/NVIDIA-Nemotron-3-Nano-30B-A3B-FP8"
29-
config.fallback_models: '["openai/nvidia/NVIDIA-Nemotron-3-Nano-30B-A3B-FP8"]'
30-
config.custom_model_max_tokens: "32768"
31-
32-
github_action_config.auto_review: "true"
33-
github_action_config.auto_describe: "true"
34-
github_action_config.auto_improve: "true"
22+
OPENAI__KEY: ${{ secrets.OPENAI_KEY }}
23+
OPENAI__API_BASE: "http://localhost:8000/v1"
24+
CONFIG__MODEL: "openai/nvidia/NVIDIA-Nemotron-3-Nano-30B-A3B-FP8"
25+
CONFIG__MODEL_TURBO: "openai/nvidia/NVIDIA-Nemotron-3-Nano-30B-A3B-FP8"
26+
CONFIG__FALLBACK_MODELS: '["openai/nvidia/NVIDIA-Nemotron-3-Nano-30B-A3B-FP8"]'
27+
CONFIG__CUSTOM_MODEL_MAX_TOKENS: "32768"
28+
GITHUB_ACTION_CONFIG__AUTO_REVIEW: "true"
29+
GITHUB_ACTION_CONFIG__AUTO_DESCRIBE: "true"
30+
GITHUB_ACTION_CONFIG__AUTO_IMPROVE: "true"
31+
run: |
32+
source ~/pr-agent-env/bin/activate
33+
pr-agent --pr_url "${{ github.event.pull_request.html_url || github.event.issue.pull_request.url }}" auto_review

0 commit comments

Comments
 (0)