From 478f63be73f911a0dbe2b16f5749ed38de6cbb64 Mon Sep 17 00:00:00 2001 From: Boris Cherny Date: Fri, 8 Aug 2025 12:55:48 -0700 Subject: [PATCH] Fix workflow failure by adding workflow_dispatch trigger MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The backfill-duplicate-comments script was failing because it tried to trigger claude-dedupe-issues.yml via workflow_dispatch, but that workflow only had an issues trigger. Added workflow_dispatch with issue_number input and updated the prompt to use either event or input issue number. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- .github/workflows/claude-dedupe-issues.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/claude-dedupe-issues.yml b/.github/workflows/claude-dedupe-issues.yml index f7f2f988..1ff1e5ad 100644 --- a/.github/workflows/claude-dedupe-issues.yml +++ b/.github/workflows/claude-dedupe-issues.yml @@ -3,6 +3,12 @@ description: Automatically dedupe GitHub issues using Claude Code on: issues: types: [opened] + workflow_dispatch: + inputs: + issue_number: + description: 'Issue number to process for duplicate detection' + required: true + type: string jobs: claude-dedupe-issues: @@ -19,7 +25,7 @@ jobs: - name: Run Claude Code slash command uses: anthropics/claude-code-base-action@beta with: - prompt: "/dedupe ${{ github.repository }}/issues/${{ github.event.issue.number }}" + prompt: "/dedupe ${{ github.repository }}/issues/${{ github.event.issue.number || inputs.issue_number }}" anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }} claude_env: | GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}