PR-Agent Auto Review (CLI) #12
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: PR-Agent (Self-hosted Nemotron) | |
| on: | |
| pull_request: | |
| types: [opened, reopened, ready_for_review, synchronize] | |
| issue_comment: | |
| types: [created] | |
| jobs: | |
| pr_agent_job: | |
| if: ${{ github.event.sender.type != 'Bot' }} | |
| runs-on: self-hosted | |
| permissions: | |
| issues: write | |
| pull-requests: write | |
| contents: write | |
| steps: | |
| - name: Run PR-Agent | |
| env: | |
| GITHUB__USER_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| OPENAI__KEY: ${{ secrets.OPENAI_KEY }} | |
| OPENAI__API_BASE: "http://localhost:8888/v1" | |
| github_action_config.auto_review: "true" # enable\disable auto review | |
| github_action_config.auto_describe: "true" # enable\disable auto describe | |
| github_action_config.auto_improve: "true" # enable\disable auto improve | |
| # 모델명 변경 | |
| CONFIG__MODEL: "openai/Qwen/Qwen3-Coder-Next-FP8" | |
| CONFIG__MODEL_TURBO: "openai/Qwen/Qwen3-Coder-Next-FP8" | |
| CONFIG__FALLBACK_MODELS: '["openai/Qwen/Qwen3-Coder-Next-FP8"]' | |
| CONFIG__CUSTOM_MODEL_MAX_TOKENS: "32768" | |
| CONFIG__DUPLICATE_EXAMPLES: "true" | |
| run: | | |
| source ~/pr-agent-env/bin/activate | |
| pr-agent --pr_url "${{ github.event.pull_request.html_url }}" review |