Fix CI issue for IO build #168
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
| # Copyright (C) 2025 Intel Corporation | |
| # SPDX-License-Identifier: Apache-2.0 | |
| # CI for public repo only | |
| name: PR Agent | |
| on: | |
| pull_request: | |
| types: [opened, reopened, ready_for_review] # [opened, synchronize, reopened, ready_for_review] | |
| issue_comment: | |
| types: [created] # [created, edited] | |
| jobs: | |
| review: | |
| if: ${{ !contains(github.repository, 'intel-innersource') }} | |
| runs-on: agent | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| issues: write | |
| steps: | |
| - name: Check LLM Server | |
| env: | |
| OPENAI_API_BASE: ${{ secrets.OPENAI_API_BASE }} | |
| OPENAI_KEY: ${{ secrets.OPENAI_KEY }} | |
| MODEL: ${{ secrets.MODEL_NAME }} | |
| run: | | |
| curl -sf "$OPENAI_API_BASE/models" -H "Authorization: Bearer $OPENAI_KEY" | |
| - name: Run PR-Agent | |
| uses: qodo-ai/pr-agent@main | |
| env: | |
| OPENAI_API_BASE: ${{ secrets.OPENAI_API_BASE }} | |
| OPENAI_KEY: ${{ secrets.OPENAI_KEY }} | |
| GITHUB_TOKEN: ${{ secrets.PR_GITHUB_TOKEN }} | |
| config.model: "openai/${{ secrets.MODEL_NAME }}" | |
| config.custom_model_max_tokens: "4196" | |
| github_action_config.auto_review: "true" | |
| github_action_config.auto_describe: "true" | |
| github_action_config.auto_improve: "true" |