Skip to content

ci: recheck the review approval when a thread is resolved or reopened - #14

Closed
devnullexile wants to merge 1 commit into
mainfrom
ci/recheck-on-thread-events
Closed

devnullexile wants to merge 1 commit into
mainfrom
ci/recheck-on-thread-events

Conversation

@devnullexile

Copy link
Copy Markdown
Member

Adds the pull_request_review_thread trigger (resolved, unresolved) supported by devnullexile/deepseek-review v1.5.3. When a review thread is resolved or reopened, the action now rechecks the open findings and updates its approval and result comment without running a new review, so the verdict no longer waits for the next push.

cancel-in-progress is turned off for thread events, so a thread the bot resolves during a review queues behind that review instead of canceling it. Pull request events behave as before.

@devnullexile
devnullexile requested a review from ArcsinX as a code owner November 7, 2026 11:56
Comment on lines 17 to +20
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' }}

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.

@devnullexile-deepseek-review

Copy link
Copy Markdown

PR Reviewer Guide 🔍

Here are some key observations to aid the review process:

⏱️ Estimated effort to review: 2 🔵🔵⚪⚪⚪
✅ Merge recommendation: Changes required
🧪 No relevant tests
🔒 No security concerns identified

@devnullexile-deepseek-review

Copy link
Copy Markdown

DeepSeek review: Not approved (014cca9)

To get the bot's approval:

  • Fix, or answer in its thread: .github/workflows/deepseek-review.yml:17 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…
  • merge recommendation is 'changes_required'

This comment is updated on every review. The review comment and its threads have the details.

@devnullexile

Copy link
Copy Markdown
Member Author

Closing this: pull_request_review_thread is a webhook event only. GitHub Actions does not list it among the events that trigger workflows (reference), so this trigger would never run the recheck and could make the workflow file invalid. The bot already resolves its own fixed threads during a review (v1.5.3), so no workflow change is needed for that.

@devnullexile
devnullexile deleted the ci/recheck-on-thread-events branch November 7, 2026 12:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant