Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .github/workflows/deepseek-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,19 @@ 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: {}

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' }}
Comment on lines 17 to +20

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lost review

Thread-event runs join the same deepseek-review-<PR> concurrency group as review runs, so they share the group's single pending slot. cancel-in-progress: false protects the running review, but GitHub still cancels any previously pending run when a new run is queued in the same group. Concrete sequence: Review A is running, a push queues Review B as pending, then a pull_request_review_thread event (the bot resolving a fixed thread during A, or a user resolving a thread) is queued and replaces pending Review B; when A finishes only the lightweight recheck runs. The pushed commit is then never fully reviewed until another event, while the recheck can update the approval/result comment using the prior review's findings. Consider a separate concurrency group (or another mechanism) for thread-triggered rechecks so they cannot displace a queued review.


jobs:
review:
Expand Down
Loading