Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 11 additions & 12 deletions .github/workflows/claude-code-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,20 @@ jobs:
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: [
allowed_tools: |-
# 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)",
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
]
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
Expand Down
33 changes: 16 additions & 17 deletions .github/workflows/claude-comment-response.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,28 +15,27 @@ jobs:
prompt: "${{ github.event.comment.body }}"

# Define which tools Claude can use
allowed_tools: [
allowed_tools: |-
# Git inspection commands (read-only)
"Bash(git status)",
"Bash(git log)",
"Bash(git show)",
"Bash(git blame)",
"Bash(git ls-files)",
"Bash(git branch)",
"Bash(git tag)",
"Bash(git diff)",
Bash(git status)
Bash(git log)
Bash(git show)
Bash(git blame)
Bash(git ls-files)
Bash(git branch)
Bash(git tag)
Bash(git diff)

# File modifications
"Bash(git add)",
"Bash(git commit)",
Bash(git add)
Bash(git commit)

# File exploration tools
"View", # Read file contents
"Edit", # Edit files
"GlobTool", # Find files by pattern
"GrepTool", # Search file contents
"BatchTool" # Run multiple tools in parallel
]
View # Read file contents
Edit # Edit files
GlobTool # Find files by pattern
GrepTool # Search file contents
BatchTool # Run multiple tools in parallel

# Maximum number of conversation turns
max_turns: 10
Expand Down
43 changes: 21 additions & 22 deletions .github/workflows/claude-pr-creation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,35 +24,34 @@ jobs:
prompt: "${{ github.event.comment.body }}"

# Define which tools Claude can use
allowed_tools: [
allowed_tools: |-
# Git inspection commands
"Bash(git status)",
"Bash(git log)",
"Bash(git show)",
"Bash(git blame)",
"Bash(git reflog)",
"Bash(git stash list)",
"Bash(git ls-files)",
"Bash(git branch)",
"Bash(git tag)",
"Bash(git diff)",
Bash(git status)
Bash(git log)
Bash(git show)
Bash(git blame)
Bash(git reflog)
Bash(git stash list)
Bash(git ls-files)
Bash(git branch)
Bash(git tag)
Bash(git diff)

# Git modification commands
"Bash(git checkout -b)",
"Bash(git add)",
"Bash(git commit)",
"Bash(git push)",
Bash(git checkout -b)
Bash(git add)
Bash(git commit)
Bash(git push)

# GitHub CLI commands for PR creation
"Bash(gh pr create)",
Bash(gh pr create)

# File exploration and modification tools
"View", # Read file contents
"Edit", # Edit files
"GlobTool", # Find files by pattern
"GrepTool", # Search file contents
"BatchTool" # Run multiple tools in parallel
]
View # Read file contents
Edit # Edit files
GlobTool # Find files by pattern
GrepTool # Search file contents
BatchTool # Run multiple tools in parallel

# Maximum number of conversation turns
max_turns: 20
Expand Down
Loading