From f86ee1fa12f6d79325e2b4f3a94a363acf91364d Mon Sep 17 00:00:00 2001 From: Gugle Date: Sun, 21 Jun 2026 17:47:57 +0800 Subject: [PATCH] =?UTF-8?q?chore(workflow):=20=E6=9B=B4=E6=96=B0=20PR=20?= =?UTF-8?q?=E8=AF=84=E8=AE=BA=E5=B7=A5=E4=BD=9C=E6=B5=81=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将评论作者从 github-actions[bot] 更改为 anvil-craft - 为 create-or-update-comment 步骤添加 PAT_TOKEN 认证 - 确保 PR 评论功能正常运行 --- .github/workflows/pull_request.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index b52eb1a9..37b45d5e 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -453,12 +453,13 @@ jobs: uses: peter-evans/find-comment@v3 with: issue-number: ${{ github.event.pull_request.number }} - comment-author: github-actions[bot] + comment-author: anvil-craft body-includes: Roseau API Breaking Change Report - name: Create or update PR comment uses: peter-evans/create-or-update-comment@v4 with: + token: ${{ secrets.PAT_TOKEN }} comment-id: ${{ steps.find-comment.outputs.comment-id }} issue-number: ${{ github.event.pull_request.number }} body-path: /tmp/roseau-body.md