Skip to content

chore: add Claude Code GitHub Actions for automated PR reviews - #8

Merged
robcohen merged 2 commits into
mainfrom
chore/claude-code-reviews
Jan 6, 2026
Merged

robcohen merged 2 commits into
mainfrom
chore/claude-code-reviews

Conversation

@robcohen

@robcohen robcohen commented Jan 6, 2026

Copy link
Copy Markdown
Member

Summary

Adds three Claude Code GitHub Actions workflows for automated code review:

  • claude-review.yml - Automated code review on every PR

    • Triggers on PR open/synchronize
    • Reviews for correctness, Rust idioms, performance, tests, docs
    • Skips draft PRs and dependabot
  • claude-interactive.yml - Interactive @claude mentions

    • Responds to @claude in PR/issue comments
    • Allows asking questions, requesting changes, getting explanations
  • claude-security.yml - Security-focused review

    • Uses anthropics/claude-code-security-review action
    • Triggers only on Rust code and dependency file changes
    • Posts security findings as PR comments

Also adds CLAUDE.md with project-specific context including:

  • Architecture overview (9 crates)
  • Code standards (Rust idioms, testing, docs)
  • Review checklist
  • Security considerations
  • Common patterns for plugins, BQL functions, validation errors

Setup Required

Add ANTHROPIC_API_KEY to repository secrets:

  1. Go to Settings > Secrets and variables > Actions
  2. Add new repository secret: ANTHROPIC_API_KEY

Test plan

  • Verify workflows appear in Actions tab
  • Test automated review by opening a test PR
  • Test interactive by commenting @claude explain this code
  • Test security review by modifying a .rs file

- Add claude-review.yml for automated code review on PRs
- Add claude-interactive.yml for @claude mention responses
- Add claude-security.yml for security-focused reviews
- Add CLAUDE.md with project context for Claude reviews
@robcohen
robcohen added this pull request to the merge queue Jan 6, 2026
@robcohen robcohen closed this Jan 6, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to a manual request Jan 6, 2026
@robcohen robcohen reopened this Jan 6, 2026
@robcohen
robcohen enabled auto-merge January 6, 2026 15:53
@robcohen
robcohen added this pull request to the merge queue Jan 6, 2026
Merged via the queue into main with commit babf7e8 Jan 6, 2026
@robcohen
robcohen deleted the chore/claude-code-reviews branch January 6, 2026 15:56
robcohen added a commit that referenced this pull request Jan 14, 2026
chore: add Claude Code GitHub Actions for automated PR reviews
robcohen added a commit that referenced this pull request Jan 14, 2026
chore: add Claude Code GitHub Actions for automated PR reviews
robcohen added a commit that referenced this pull request Mar 31, 2026
Fixes several issues identified in PR #624 review:

1. Yahoo f64 precision (issue #3): Use pattern matching with
   serde_json::Value::Number to preserve decimal precision instead of
   converting through f64.

2. ECB cross-rate handling (issue #2): Rewrite fetch_price to correctly
   handle EUR→X, X→EUR, and X→Y cross-rate conversions.

3. --source-cmd early return (issue #4): Move external command handling
   after symbol discovery so -f flag works with --source-cmd.

4. Hardcoded timeout (issue #7): Use config timeout for --source-cmd
   instead of hardcoded 30 seconds.

5. External source naming (issue #8): Derive source name from command
   binary name instead of always returning "external". Add with_name()
   constructor for configured sources.

6. Unknown sources warning (issue #5): Track and report unknown sources
   in fallback chains when price fetching fails.

7. Timeout limitation (issue #6): Document that timeout is stored but
   not enforced due to std::process::Command limitations.

Co-Authored-By: Claude Opus 4.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant