Skip to content

new CLAUDE.md, gin server docs, and claude code in CI! #1

new CLAUDE.md, gin server docs, and claude code in CI!

new CLAUDE.md, gin server docs, and claude code in CI! #1

name: Claude Code Review
on:
pull_request:
types: [opened, synchronize] # Runs on new PRs and updates
jobs:
code-review:
runs-on: ubuntu-latest
steps:
# Check out the code to allow git diff operations
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0 # Fetch full history for accurate diffs
- name: Run Code Review with Claude
id: code-review
uses: anthropics/claude-code-action@beta
with:
# Define the review focus areas
prompt: "Review the PR changes. Focus on code quality, potential bugs, and performance issues. Suggest improvements where appropriate. Pay special attention to Kubernetes operator patterns and Go best practices according to the CLAUDE.md file."
# Limited tools for safer review operations
allowed_tools: [

Check failure on line 25 in .github/workflows/claude-code-review.yml

View workflow run for this annotation

GitHub Actions / Claude Code Review

Invalid workflow file

The workflow is not valid. .github/workflows/claude-code-review.yml (Line: 25, Col: 26): A sequence was not expected
# Git inspection commands (read-only)
"Bash(git status)",
"Bash(git log)",
"Bash(git diff --name-only HEAD~1)",
"Bash(git diff HEAD~1)",
"Bash(git show)",
"Bash(git blame)",
# File exploration tools
"View", # Read file contents
"GlobTool", # Find files by pattern
"GrepTool", # Search file contents
"BatchTool" # Run multiple tools in parallel
]
# Timeout after 15 minutes
timeout_minutes: 15
# Your Anthropic API key (stored as a GitHub secret)
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}