Skip to content

feat(llm-assistants): enrich subagent config with effort, memory, and team presets #243

feat(llm-assistants): enrich subagent config with effort, memory, and team presets

feat(llm-assistants): enrich subagent config with effort, memory, and team presets #243

Workflow file for this run

name: Claude Code
on:
pull_request:
types:
- opened
- synchronize
- ready_for_review
- reopened
- labeled
issue_comment:
types:
- created
pull_request_review_comment:
types:
- created
pull_request_review:
types:
- submitted
issues:
types:
- opened
- edited
jobs:
review:
if: >-
github.event_name == 'pull_request' &&
github.event.pull_request.draft == false &&
contains(github.event.pull_request.labels.*.name, 'claude')
runs-on: ubuntu-latest
timeout-minutes: 15
permissions:
contents: read
pull-requests: write
id-token: write
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Read review prompt
id: prompt
run: |
{
printf 'content<<EOF\n'
printf 'REPO: %s\n' "${{ github.repository }}"
printf 'PR NUMBER: %s\n\n' "${{ github.event.pull_request.number }}"
cat .github/prompts/review.md
printf '\nEOF\n'
} >> "$GITHUB_OUTPUT"
- name: Review PR with Claude
uses: anthropics/claude-code-action@v1
with:
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
prompt: ${{ steps.prompt.outputs.content }}
claude_args: |
--allowedTools "Write"
--allowedTools "Bash(gh pr comment *)"
--allowedTools "Bash(gh pr diff *)"
--allowedTools "Bash(gh pr view *)"
--allowedTools "Bash(gh api *)"
--allowedTools "mcp__github_inline_comment__create_inline_comment"
claude:
if: >-
(github.event_name == 'issue_comment' && contains(github.event.comment.body, '@claude')) ||
(github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@claude')) ||
(github.event_name == 'pull_request_review' && contains(github.event.review.body, '@claude')) ||
(github.event_name == 'issues' && (contains(github.event.issue.body, '@claude') || contains(github.event.issue.title, '@claude')))
runs-on: ubuntu-latest
timeout-minutes: 30
permissions:
contents: write # Needed for commits / pushes in interactive sessions
pull-requests: write
issues: write
id-token: write
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Run Claude Code
uses: anthropics/claude-code-action@v1
with:
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}