Skip to content

fix: unify health endpoint to use shared version helper (#316) #418

fix: unify health endpoint to use shared version helper (#316)

fix: unify health endpoint to use shared version helper (#316) #418

Workflow file for this run

name: AI PR Review
on:
pull_request:
branches: ["main"]
types: [opened, reopened, synchronize, ready_for_review]
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
permissions:
contents: read
pull-requests: write
jobs:
review:
if: ${{ github.event_name != 'pull_request' || !github.event.pull_request.draft }}
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha || github.sha }}
- name: Generate bot token
id: app-token
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0
with:
client-id: ${{ secrets.BOT_APP_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@8f72b519d2aaa4824673f5f4cbaafb7aba299349 # v1.1.5
with:
github_token: ${{ steps.app-token.outputs.token }}
ai_primary_retries: "8"
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_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 }}
context_limit_mode: normal
tool_mode: plan_execute_once
tool_max_requests: "4"
tool_planning_timeout_sec: "45"
tool_planning_max_context_bytes: "15000"
tool_planning_max_tokens: "300"
tool_max_response_bytes: "12000"
tool_allowed_gh_api_repos: "*"
tool_request_timeout_sec: "15"
tool_enable_for_forks: "false"
publish_mode: review_verdict
allow_approve: "true"