diff --git a/.github/workflows/deepseek-review.yml b/.github/workflows/deepseek-review.yml index 9d3608b..83bbb08 100644 --- a/.github/workflows/deepseek-review.yml +++ b/.github/workflows/deepseek-review.yml @@ -5,6 +5,9 @@ on: # without a new commit, so it is reviewed again; other edits start no review. pull_request_target: types: [opened, reopened, ready_for_review, synchronize, edited] + # A resolved or reopened thread only rechecks the approval; no new review runs. + pull_request_review_thread: + types: [resolved, unresolved] # The action works with the reviewer GitHub App token only. permissions: {} @@ -12,7 +15,9 @@ permissions: {} concurrency: # A title or body edit gets its own group, so it never cancels a running review. group: deepseek-review-${{ github.event.pull_request.number }}${{ github.event.action == 'edited' && !github.event.changes.base && '-edit' || '' }} - cancel-in-progress: true + # A thread event, which the bot itself causes when it resolves a fixed thread, + # queues behind the running review instead of canceling it. + cancel-in-progress: ${{ github.event_name != 'pull_request_review_thread' }} jobs: review: