diff --git a/.code-reviewer.yml b/.code-reviewer.yml new file mode 100644 index 0000000..9e02b38 --- /dev/null +++ b/.code-reviewer.yml @@ -0,0 +1,9 @@ +# .code-reviewer.yml — repo-level review configuration. +# Omitted keys fall through to dashboard, account, then product defaults. +# Full schema: https://github.com/ckorhonen/code-reviewer (RepoConfigV1). +version: 1 +profile: balanced +verify: + checkout_verifier: true +publication: + precision_floor: 0.3 diff --git a/.github/workflows/code-reviewer.yml b/.github/workflows/code-reviewer.yml index 3fcb5b5..f04432a 100644 --- a/.github/workflows/code-reviewer.yml +++ b/.github/workflows/code-reviewer.yml @@ -1,22 +1,29 @@ -name: AI code review - +# Managed by the code-reviewer GitHub App setup PR. +# The trusted reusable workflow is pinned to an immutable commit SHA; bump it deliberately. +name: Code Reviewer on: pull_request: - types: [opened, synchronize, reopened, ready_for_review] - + types: + - opened + - synchronize + - reopened +concurrency: + group: code-reviewer-${{ github.repository }}-${{ github.event.pull_request.number || github.event.issue.number }} + cancel-in-progress: true permissions: contents: read pull-requests: write - + id-token: write jobs: - review: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: ckorhonen/code-reviewer@main - with: - openrouter_api_key: ${{ secrets.OPENROUTER_API_KEY }} - mode: sparse - max_cost_usd: "0.25" - post_comments: "false" - post_summary_comment: "true" + code_review: + uses: ckorhonen/code-reviewer/.github/workflows/code-reviewer-reusable.yml@71220e0da7ce6276c8a473409d48753444beec0d + with: + ingest_url: https://api.polaris.sourcebottle.net/ingest + oidc_audience: code-reviewer + mode: sparse + review_strategy: multi-model-union + max_cost_usd: "0.25" + post_summary_comment: false + post_inline_comments: false + secrets: + openrouter_api_key: ${{ secrets.OPENROUTER_API_KEY }}