Repository navigation
fix(gh-issues): deduplicate CI status by check name (#176) - #177
Merged
Merged
Conversation
Deduplicate statusCheckRollup by check name, keeping only the latest result (by completedAt). CI column now matches GitHub PR page when checks are re-run. Refs: #176 Co-authored-by: Cursor <[email protected]>
Signed-off-by: gerchowl <[email protected]>
c-vigo
approved these changes
Feb 24, 2026
Signed-off-by: gerchowl <[email protected]>
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.
Description
Fixes the
just gh-issuesPR table CI column showing incorrect status when checks are re-run. ThestatusCheckRollupfromgh pr listincludes all check runs (including re-runs), so a check that failed twice then succeeded would show red (✗ 1/3) instead of green (✓ 1/1).This PR deduplicates
statusCheckRollupby check name, keeping only the latest result (bycompletedAt), so the CI column matches what GitHub shows on the PR page.Type of Change
fix-- Bug fixfeat-- New featuredocs-- Documentation onlychore-- Maintenance task (deps, config, etc.)refactor-- Code restructuring (no behavior change)test-- Adding or updating testsci-- CI/CD pipeline changesbuild-- Build system or dependency changesrevert-- Reverts a previous commitstyle-- Code style (formatting, whitespace)Modifiers
!) -- This change breaks backward compatibilityChanges Made
scripts/gh_issues.py: Add_dedupe_status_checks()helper; call it at start of_format_ci_status()tests/test_gh_issues.py: Add two tests for dedup (by completedAt, fallback when missing)CHANGELOG.md: Add Fixed entry for [BUG] gh-issues CI status counts duplicate/superseded check runs #176Changelog Entry
Fixed
statusCheckRollupby check name, keeping only the latest result (bycompletedAt)Testing
uv run pytest tests/test_gh_issues.py -v)Manual Testing Details
N/A — unit tests cover the dedup logic.
Checklist
docs/templates/, then runjust docs)CHANGELOG.mdin the[Unreleased]section (and pasted the entry above)Additional Notes
Design and implementation plan posted as comments on #176.
Refs: #176