diff --git a/.coderabbit.yaml b/.coderabbit.yaml new file mode 100644 index 0000000..cf300d1 --- /dev/null +++ b/.coderabbit.yaml @@ -0,0 +1,11 @@ +# yaml-language-server: $schema=https://www.coderabbit.ai/integrations/schema.v2.json +language: "en-US" +reviews: + profile: "chill" + path_instructions: + - path: "src/**/*.rs" + instructions: | + - Correctness bugs and edge cases, especially error handling and the provider fallback chains. + - Idiomatic Rust and clippy-level issues. + - Security: no leaked secrets, safe subprocess usage. + - Performance considerations. diff --git a/.github/workflows/claude-code-review.yml b/.github/workflows/claude-code-review.yml deleted file mode 100644 index 1c7b141..0000000 --- a/.github/workflows/claude-code-review.yml +++ /dev/null @@ -1,39 +0,0 @@ -name: Claude Auto Review - -on: - pull_request: - types: [opened, synchronize] - -jobs: - review: - runs-on: ubuntu-latest - permissions: - contents: read - pull-requests: write - id-token: write - steps: - - uses: actions/checkout@v6 - with: - fetch-depth: 1 - - - uses: anthropics/claude-code-action@v1 - with: - claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }} - prompt: | - REPO: ${{ github.repository }} - PR NUMBER: ${{ github.event.pull_request.number }} - - Review this Rust pull request, focusing on: - - Correctness bugs and edge cases (error handling, fallback paths) - - Idiomatic Rust and clippy-level issues - - Security implications (no leaked secrets, safe subprocess usage) - - Performance considerations - - Note: The PR branch is already checked out in the current working directory. - - Use `gh pr comment` for top-level feedback. - Use `mcp__github_inline_comment__create_inline_comment` (with `confirmed: true`) to highlight specific code issues. - Only post GitHub comments - don't submit review text as messages. - - claude_args: | - --allowedTools "mcp__github_inline_comment__create_inline_comment,Bash(gh pr comment:*),Bash(gh pr diff:*),Bash(gh pr view:*)"