diff --git a/.github/workflows/claude-code-review.yml b/.github/workflows/claude-code-review.yml deleted file mode 100644 index 963ae4759ba..00000000000 --- a/.github/workflows/claude-code-review.yml +++ /dev/null @@ -1,44 +0,0 @@ -name: Claude Code Review -# For deepset-ai org members: runs automatically on every PR -# For external contributors: runs when a maintainer adds the 'claude-review' label -on: - pull_request: - types: [opened, synchronize, ready_for_review, reopened] - pull_request_target: - types: [labeled] - -permissions: - contents: read - -jobs: - claude-review: - if: | - ( - github.event_name == 'pull_request' && - !github.event.pull_request.head.repo.fork - ) || ( - github.event_name == 'pull_request_target' && - github.event.label.name == 'claude-review' - ) - runs-on: ubuntu-slim - continue-on-error: true - permissions: - contents: read - pull-requests: write - issues: read - id-token: write - steps: - - name: Checkout repository - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 - with: - persist-credentials: false - fetch-depth: 1 - - - name: Run Claude Code Review - id: claude-review - uses: anthropics/claude-code-action@0fe28cdb64e23015219b0e478100b7105fd7dfa1 # v1.0.167 - with: - anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY_PR_REVIEWS_PUBLIC_REPOS }} - plugin_marketplaces: 'https://github.com/anthropics/claude-code.git' - plugins: 'code-review@claude-code-plugins' - prompt: '/code-review:code-review --comment ${{ github.repository }}/pull/${{ github.event.pull_request.number }}' diff --git a/.github/workflows/claude.yml b/.github/workflows/claude.yml deleted file mode 100644 index cb58cea205c..00000000000 --- a/.github/workflows/claude.yml +++ /dev/null @@ -1,64 +0,0 @@ -name: Claude Code -# Only deepset-ai org members (MEMBER, OWNER, COLLABORATOR) can trigger @claude -# The 'issues' trigger is intentionally omitted for this public repo to prevent -# external users from triggering the action. -on: - issue_comment: - types: [created] - pull_request_review_comment: - types: [created] - pull_request_review: - types: [submitted] - -permissions: - contents: read - -jobs: - claude: - if: | - ( - github.event_name == 'issue_comment' && - contains(github.event.comment.body, '@claude') && - ( - github.event.comment.author_association == 'MEMBER' || - github.event.comment.author_association == 'OWNER' || - github.event.comment.author_association == 'COLLABORATOR' - ) - ) || ( - github.event_name == 'pull_request_review_comment' && - contains(github.event.comment.body, '@claude') && - ( - github.event.comment.author_association == 'MEMBER' || - github.event.comment.author_association == 'OWNER' || - github.event.comment.author_association == 'COLLABORATOR' - ) - ) || ( - github.event_name == 'pull_request_review' && - contains(github.event.review.body, '@claude') && - ( - github.event.review.author_association == 'MEMBER' || - github.event.review.author_association == 'OWNER' || - github.event.review.author_association == 'COLLABORATOR' - ) - ) - runs-on: ubuntu-slim - permissions: - contents: read - pull-requests: read - issues: read - id-token: write - actions: read - steps: - - name: Checkout repository - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 - with: - persist-credentials: false - fetch-depth: 1 - - - name: Run Claude Code - id: claude - uses: anthropics/claude-code-action@0fe28cdb64e23015219b0e478100b7105fd7dfa1 # v1.0.167 - with: - anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY_PR_REVIEWS_PUBLIC_REPOS }} - additional_permissions: | - actions: read