Skip to content

[BUG] Robot Advice Copy to Clipboard can crash app when clipboard is unavailable #33

[BUG] Robot Advice Copy to Clipboard can crash app when clipboard is unavailable

[BUG] Robot Advice Copy to Clipboard can crash app when clipboard is unavailable #33

Workflow file for this run

name: Claude
# On-demand: mention @claude in an issue, a PR comment, or a review comment.
#
# Unlike claude-code-review.yml this DOES work on fork PRs: issue_comment and
# review-comment events run in the base-repo context, so secrets are available
# and the token can post. The action verifies the commenter has write access
# before doing anything, so an outside user cannot trigger it.
on:
issue_comment:
types: [created]
pull_request_review_comment:
types: [created]
pull_request_review:
types: [submitted]
issues:
types: [opened, assigned]
permissions:
contents: write
pull-requests: write
issues: write
id-token: write
jobs:
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'))
runs-on: ubuntu-latest
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: |
--max-turns 20