From 69d7f62161c07a7e7c29146904f591f0c8cfc93e Mon Sep 17 00:00:00 2001 From: Chris233 Date: Sat, 2 May 2026 20:07:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20pr-agent.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/pr-agent.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr-agent.yml b/.github/workflows/pr-agent.yml index 7fafe3a7..272cacaa 100644 --- a/.github/workflows/pr-agent.yml +++ b/.github/workflows/pr-agent.yml @@ -4,15 +4,17 @@ on: pull_request: types: [opened, reopened, ready_for_review, synchronize] issue_comment: + types: [created] jobs: pr_agent_job: if: ${{ github.event.sender.type != 'Bot' }} runs-on: ubuntu-latest + permissions: issues: write pull-requests: write - contents: write + contents: read steps: - name: Run PR Agent @@ -36,6 +38,10 @@ jobs: config.fallback_models: '["openai/deepseek-v4-pro"]' config.custom_model_max_tokens: "1048576" + # 自动执行配置 github_action_config.auto_review: "true" github_action_config.auto_describe: "true" - github_action_config.auto_improve: "false" \ No newline at end of file + github_action_config.auto_improve: "false" + + # 关键:允许 synchronize 事件触发 PR-Agent + github_action_config.pr_actions: '["opened", "reopened", "ready_for_review", "synchronize"]' \ No newline at end of file