From ba99d83d17b66cf99ff280a430e7739b29523088 Mon Sep 17 00:00:00 2001 From: Phantom <59059173+EurFelux@users.noreply.github.com> Date: Fri, 5 Sep 2025 14:11:50 +0800 Subject: [PATCH] ci(workflows): fix claude code review ci to be triggered by pull_request (#9934) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * ci(workflows): 更新claude代码审查工作流以支持PR分支 添加ref参数以确保检出正确的PR分支 * ci: 移除claude代码审查工作流中的ref参数 * ci: 将工作流触发器从pull_request_target改为pull_request * ci: 添加Claude代码审查测试工作流 * ci: 删除claude-review-test.yml工作流文件 --- .github/workflows/claude-code-review.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/claude-code-review.yml b/.github/workflows/claude-code-review.yml index 9ff142b0df..9553ef6a91 100644 --- a/.github/workflows/claude-code-review.yml +++ b/.github/workflows/claude-code-review.yml @@ -1,9 +1,7 @@ name: Claude Code Review on: - # Use pull_request_target so the workflow runs in the context of the base repository. - # This allows OIDC and the ability to comment on PRs from forks safely. - pull_request_target: + pull_request: types: [opened, synchronize] # Optional: Only run on specific file changes # paths: