From 432243def1cca1450d2e239b6993da3be9d19228 Mon Sep 17 00:00:00 2001 From: Vlad Mocanu Date: Fri, 27 Feb 2026 13:17:19 +0200 Subject: [PATCH] fix: skip test-action for PRs created by claude bot When Claude creates a PR (e.g. upstream-sync), the pull_request event fires with actor=claude. The self-trigger guard in actor.ts blocks this because actor 'claude' matches bot_name 'claude[bot]', causing test-action to fail with "Blocking self-trigger" error. Add `if: github.actor != 'claude'` to the test-agent-mode job. Claude-created PRs (upstream syncs) don't need the integration test since they're merge commits, not action code changes. Co-Authored-By: Claude Opus 4.6 --- .forgejo/kcl-ci/main.k | 3 +++ .forgejo/workflows/test-action.yml | 1 + 2 files changed, 4 insertions(+) diff --git a/.forgejo/kcl-ci/main.k b/.forgejo/kcl-ci/main.k index a99dbba..7851767 100644 --- a/.forgejo/kcl-ci/main.k +++ b/.forgejo/kcl-ci/main.k @@ -160,6 +160,9 @@ _test_action_workflow = { "test-agent-mode" = { name = "Test Agent Mode on Forgejo" "runs-on" = "grunt" + # Skip when the PR was created by the claude bot (e.g. upstream-sync PRs). + # The self-trigger guard in actor.ts blocks actor=claude matching bot_name=claude[bot]. + "if" = "github.actor != 'claude'" steps = [ checkout_mod.checkout() { diff --git a/.forgejo/workflows/test-action.yml b/.forgejo/workflows/test-action.yml index 395f72e..495fccd 100644 --- a/.forgejo/workflows/test-action.yml +++ b/.forgejo/workflows/test-action.yml @@ -23,6 +23,7 @@ jobs: test-agent-mode: name: Test Agent Mode on Forgejo runs-on: grunt + if: github.actor != 'claude' steps: - name: Checkout uses: https://${{ secrets.READ_REPO_TOKEN }}@git.wxs.ro/xternal/checkout@v6.0.2