From 9bf93b2a54001d67b16b3b4528aaa6b4517df7f7 Mon Sep 17 00:00:00 2001 From: Nick Knowles <22798226+knowlen@users.noreply.github.com> Date: Thu, 7 Aug 2025 11:36:25 -0700 Subject: [PATCH 1/2] Create claude-dispatch.yml --- .github/workflows/claude-dispatch.yml | 50 +++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 .github/workflows/claude-dispatch.yml diff --git a/.github/workflows/claude-dispatch.yml b/.github/workflows/claude-dispatch.yml new file mode 100644 index 0000000..957a72d --- /dev/null +++ b/.github/workflows/claude-dispatch.yml @@ -0,0 +1,50 @@ +# IMPORTANT: Do not move this file in your repo! Make sure it's located at .github/workflows/claude-dispatch.yml +name: Claude Code Dispatch + +# IMPORTANT: Do not modify this `on` section! +on: + repository_dispatch: + types: [claude-dispatch] + +jobs: + claude-dispatch: + runs-on: ubuntu-latest + permissions: + contents: write + pull-requests: write + issues: write + id-token: write + steps: + - name: Checkout repository + uses: actions/checkout@v4 + with: + fetch-depth: 1 + + # - name: Preliminary Setup + # run: | + # echo "Setting up environment..." + # Add any preliminary setup commands here to setup Claude's dev environment + # e.g., npm install, etc. + + - name: Run Claude Code + id: claude + uses: anthropics/claude-code-action@eap + with: + mode: 'remote-agent' + + # Optional: Specify an API key, otherwise we'll use your Claude account automatically + # anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }} + + # Optional: Specify model (defaults to Claude Sonnet 4, uncomment for Claude Opus 4) + # model: "claude-opus-4-20250514" + model: "claude-opus-4-1-20250805" + + # Optional: Allow Claude to run specific commands + # allowed_tools: | + # Bash(npm run lint) + # Bash(npm run test) + # Bash(npm run build) + + # Optional: Custom environment variables for Claude + # claude_env: | + # NODE_ENV: test From f2f3ac312ca0013d0f5101c0529772bdab231b81 Mon Sep 17 00:00:00 2001 From: knowlen Date: Thu, 7 Aug 2025 12:02:21 -0700 Subject: [PATCH 2/2] Fix trailing whitespace in workflow file --- .github/workflows/claude-dispatch.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/claude-dispatch.yml b/.github/workflows/claude-dispatch.yml index 957a72d..beaadb4 100644 --- a/.github/workflows/claude-dispatch.yml +++ b/.github/workflows/claude-dispatch.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest permissions: contents: write - pull-requests: write + pull-requests: write issues: write id-token: write steps: @@ -31,7 +31,6 @@ jobs: uses: anthropics/claude-code-action@eap with: mode: 'remote-agent' - # Optional: Specify an API key, otherwise we'll use your Claude account automatically # anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}