Skip to content

fix(sandbox): point boxlite install advice at the running environment #4821

fix(sandbox): point boxlite install advice at the running environment

fix(sandbox): point boxlite install advice at the running environment #4821

name: Claude Mention
on:
issue_comment:
types: [created]
pull_request_review_comment:
types: [created]
pull_request_review:
types: [submitted]
jobs:
claude:
# Runs only when someone with write access mentions @claude. The action's built-in
# actor check blocks external PR authors, so external PRs are reviewed only when a
# maintainer explicitly triggers this.
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'))
runs-on: ubuntu-latest
timeout-minutes: 30
permissions:
contents: read # review/comment only; set to write to let @claude push fixes
pull-requests: write
issues: write
id-token: write
actions: read
steps:
- uses: actions/checkout@v7
with:
fetch-depth: 1
- uses: anthropics/claude-code-action@v1
with:
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
claude_args: |
--model claude-sonnet-5