Skip to content

Refreshing PR does not refresh rerun status checks#8454

Merged
alexr00 merged 1 commit intomainfrom
alexr00/issue8449
Jan 30, 2026
Merged

Refreshing PR does not refresh rerun status checks#8454
alexr00 merged 1 commit intomainfrom
alexr00/issue8449

Conversation

@alexr00
Copy link
Member

@alexr00 alexr00 commented Jan 30, 2026

Fixes #8449

Copilot AI review requested due to automatic review settings January 30, 2026 17:31
@alexr00 alexr00 enabled auto-merge (squash) January 30, 2026 17:31
@alexr00 alexr00 self-assigned this Jan 30, 2026
@vs-code-engineering vs-code-engineering bot added this to the February 2026 milestone Jan 30, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes issue #8449 where refreshing a PR does not update the status of rerun checks. When checks are re-run on the same commit (e.g., when a PR is closed and reopened), GitHub's API returns all check run instances, causing the extension to display stale failed statuses instead of the current pending statuses.

Changes:

  • Added deduplication logic to filter duplicate status checks, preferring pending checks over completed ones
  • Fixed React useEffect missing dependency array to properly react to status changes
  • Fixed array mutation issue in status sorting by using slice()

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
webviews/components/merge.tsx Fixed useEffect dependency array and prevented array mutation during sorting
src/github/githubRepository.ts Added deduplication and overall state computation logic for status checks

@alexr00 alexr00 merged commit 4add6e5 into main Jan 30, 2026
12 checks passed
@alexr00 alexr00 deleted the alexr00/issue8449 branch January 30, 2026 18:26
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.

Refreshing PR does not refresh rerun status checks

3 participants