Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions .github/workflows/ai-pr-review.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,25 +29,31 @@ jobs:
id: app-token
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0
with:
client-id: ${{ secrets.BOT_APP_ID }}
client-id: ${{ secrets.BOT_CLIENT_ID }}
private-key: ${{ secrets.BOT_APP_PRIVATE_KEY }}

- name: Review PR with reusable AI reviewer
if: github.event_name == 'pull_request'
id: review
uses: misospace/pr-reviewer-action@ff03870002ecee692bfcfe9ad6e5dd1cb36f3ddd # v1.2.0
uses: misospace/pr-reviewer-action@e891235e8e3e75824b88fb696b1f7b4816122737 # v1.2.2
with:
github_token: ${{ steps.app-token.outputs.token }}
ai_primary_retries: "8"
ai_primary_retries: "3"
ai_primary_retry_delay_sec: "15"
ai_base_url: ${{ vars.LITELLM_URL }}
ai_api_format: ${{ vars.PRIMARY_FORMAT }}
ai_model: ${{ vars.PRIMARY_MODEL }}
ai_api_key: ${{ secrets.LITELLM_API_KEY }}
ai_response_format: json_object
ai_fallback_base_url: ${{ vars.LITELLM_URL }}
ai_fallback_api_format: ${{ vars.FALLBACK_FORMAT }}
ai_fallback_model: ${{ vars.FALLBACK_MODEL }}
ai_fallback_api_key: ${{ secrets.LITELLM_API_KEY }}
review_routing_mode: auto
ai_smart_base_url: ${{ vars.LITELLM_URL }}
ai_smart_api_format: ${{ vars.SMART_FORMAT || vars.FALLBACK_FORMAT }}
ai_smart_model: ${{ vars.SMART_MODEL || vars.FALLBACK_MODEL }}
ai_smart_api_key: ${{ secrets.LITELLM_API_KEY }}
context_limit_mode: normal
tool_mode: plan_execute_once
tool_max_requests: "4"
Expand All @@ -58,5 +64,8 @@ jobs:
tool_allowed_gh_api_repos: "*"
tool_request_timeout_sec: "15"
tool_enable_for_forks: "false"
on_model_failure: notice
inline_findings: "true"
verdict_policy: findings_severity_gated
publish_mode: review_verdict
allow_approve: "true"