Skip to content

fix(gh-issues): deduplicate CI status by check name (#176) - #177

Merged
gerchowl merged 4 commits into
devfrom
bugfix/176-gh-issues-ci-dedup
Feb 24, 2026
Merged

gerchowl merged 4 commits into
devfrom
bugfix/176-gh-issues-ci-dedup

Conversation

@gerchowl

Copy link
Copy Markdown
Contributor

Description

Fixes the just gh-issues PR table CI column showing incorrect status when checks are re-run. The statusCheckRollup from gh pr list includes 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 statusCheckRollup by check name, keeping only the latest result (by completedAt), so the CI column matches what GitHub shows on the PR page.

Type of Change

  • fix -- Bug fix
  • feat -- New feature
  • docs -- Documentation only
  • chore -- Maintenance task (deps, config, etc.)
  • refactor -- Code restructuring (no behavior change)
  • test -- Adding or updating tests
  • ci -- CI/CD pipeline changes
  • build -- Build system or dependency changes
  • revert -- Reverts a previous commit
  • style -- Code style (formatting, whitespace)

Modifiers

  • Breaking change (!) -- This change breaks backward compatibility

Changes Made

Changelog Entry

Fixed

  • gh-issues CI status deduplicates re-run checks (#176)
    • Deduplicate statusCheckRollup by check name, keeping only the latest result (by completedAt)
    • CI column now matches GitHub PR page when checks are re-run

Testing

  • Tests pass locally (uv run pytest tests/test_gh_issues.py -v)
  • Manual testing performed (describe below)

Manual Testing Details

N/A — unit tests cover the dedup logic.

Checklist

  • My code follows the project's style guidelines
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have updated the documentation accordingly (edit docs/templates/, then run just docs)
  • I have updated CHANGELOG.md in the [Unreleased] section (and pasted the entry above)
  • My changes generate no new warnings or errors
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published

Additional Notes

Design and implementation plan posted as comments on #176.

Refs: #176

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]>
@gerchowl
gerchowl requested a review from c-vigo as a code owner February 24, 2026 15:22
@gerchowl
gerchowl merged commit e03a80c into dev Feb 24, 2026
@gerchowl
gerchowl deleted the bugfix/176-gh-issues-ci-dedup branch February 24, 2026 16:42
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.

2 participants