Fixing action job issue in fast-mlsirm#620
Draft
seonghobae with Copilot wants to merge 2 commits into
Draft
Conversation
…de run is active When a PR is synchronized, the OpenCode required workflow fires on pull_request_target and the PR Review Merge Scheduler fires concurrently on the same event. The scheduler queries the PR's statusCheckRollup and sees the opencode-review check run as IN_PROGRESS, concluding "OpenCode review is already in progress" and waiting. The problem: pull_request_target runs of the OpenCode workflow always skip the real review job via `github.event_name == 'repository_dispatch'` gate. Once the pull_request_target run completes (with the review job SKIPPED), no workflow_run retry fires for required workflows, so the scheduler never dispatches the real review. Fix 1 (active_review_run_refs): Exclude pull_request and pull_request_target event runs from the target repo when classifying active review runs. These events never execute the review job and must not be counted as active reviews. Fix 2 (inspect_pr): When opencode_progress_state returns "running", call active_opencode_run_refs to verify an actual repository_dispatch run is active. If only PR-event runs exist, override the state to "absent" so the review is dispatched immediately instead of stalling. Adds tests for both fix points with 100% coverage maintained.
Copilot created this pull request from a session on behalf of
seonghobae
July 24, 2026 11:09
View session
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull request created by AI Agent