fix: refresh reviews after new commits

This commit is contained in:
lezi-fun committed 2026-08-14 09:16:07 +08:00
1 parent ed3e1bd72c
commit 4d73d1f30c
12 files changed
+565 -29

No files matched your search

+6 -1
View File
@@ -22,6 +22,10 @@ on:
pull_number:
required: true
type: string
pull_head_repository:
required: false
type: string
default: ""
comment_id:
required: false
type: string
@@ -203,7 +207,7 @@ jobs:
ref: main
path: ghbot-runtime
- name: Check out current PR source for agent tasks
if: ${{ inputs.event_name == 'issue_comment' || (inputs.event_name == 'pull_request_target' && inputs.event_action != 'closed' && inputs.auto_resolve_conflicts == 'true') }}
if: ${{ inputs.event_name == 'issue_comment' || (inputs.event_name == 'pull_request_target' && inputs.event_action != 'closed' && inputs.auto_resolve_conflicts == 'true' && inputs.pull_head_repository == format('{0}/{1}', inputs.repository_owner, inputs.repository_name)) }}
uses: actions/checkout@v4
with:
repository: ${{ inputs.repository_owner }}/${{ inputs.repository_name }}
@@ -267,6 +271,7 @@ jobs:
GHBOT_REPOSITORY_NAME: ${{ inputs.repository_name }}
GHBOT_REPOSITORY_ID: ${{ inputs.repository_id }}
GHBOT_PULL_NUMBER: ${{ inputs.pull_number }}
GHBOT_PULL_HEAD_REPOSITORY: ${{ inputs.pull_head_repository }}
GHBOT_COMMENT_ID: ${{ inputs.comment_id }}
GHBOT_COMMENTER_LOGIN: ${{ inputs.commenter_login }}
GHBOT_COMMENT_BODY: ${{ inputs.comment_body }}