From 8d8a856b1db5bb07de2b126cb938126fb48b0bbe Mon Sep 17 00:00:00 2001 From: "Shimaa M. Ibrahim" Date: Sun, 22 Feb 2026 03:23:57 +0100 Subject: [PATCH 1/2] "Update Claude PR Assistant workflow" --- .github/workflows/claude.yml | 38 +++++++++++++----------------------- 1 file changed, 14 insertions(+), 24 deletions(-) diff --git a/.github/workflows/claude.yml b/.github/workflows/claude.yml index ede53dd15..79fe05647 100644 --- a/.github/workflows/claude.yml +++ b/.github/workflows/claude.yml @@ -19,42 +19,32 @@ jobs: (github.event_name == 'issues' && (contains(github.event.issue.body, '@claude') || contains(github.event.issue.title, '@claude'))) runs-on: ubuntu-latest permissions: - contents: write - pull-requests: write - issues: write + contents: read + pull-requests: read + issues: read id-token: write actions: read # Required for Claude to read CI results on PRs steps: - name: Checkout repository uses: actions/checkout@v4 with: - fetch-depth: 0 + fetch-depth: 1 - name: Run Claude Code id: claude - uses: anthropics/claude-code-action@01e756b34ef7a1447e9508f674143b07d20c2631 + uses: anthropics/claude-code-action@v1 with: anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }} - show_full_output: true - branch_prefix: "claude-" - # Optional: Customize the trigger phrase (default: @claude) - # trigger_phrase: "/claude" + # This is an optional setting that allows Claude to read CI results on PRs + additional_permissions: | + actions: read - # Optional: Trigger when specific user is assigned to an issue - # assignee_trigger: "claude-bot" + # Optional: Give a custom prompt to Claude. If this is not specified, Claude will perform the instructions specified in the comment that tagged it. + # prompt: 'Update the pull request description to include a summary of changes.' - # Optional: Configure Claude's behavior with CLI arguments - # claude_args: | - # --model claude-opus-4-1-20250805 - # --max-turns 10 - # --allowedTools "Bash(npm install),Bash(npm run build),Bash(npm run test:*),Bash(npm run lint:*)" - # --system-prompt "Follow our coding standards. Ensure all new code has tests. Use TypeScript for new files." + # Optional: Add claude_args to customize behavior and configuration + # See https://github.com/anthropics/claude-code-action/blob/main/docs/usage.md + # or https://code.claude.com/docs/en/cli-reference for available options + # claude_args: '--allowed-tools Bash(gh pr:*)' - # Optional: Advanced settings configuration - # settings: | - # { - # "env": { - # "NODE_ENV": "test" - # } - # } \ No newline at end of file From 25cf305bf44413f29af2717df4296da9ffc2f5c1 Mon Sep 17 00:00:00 2001 From: "Shimaa M. Ibrahim" Date: Sun, 22 Feb 2026 03:23:58 +0100 Subject: [PATCH 2/2] "Update Claude Code Review workflow"