Skip to content

fix(github): gh issues close-merged misses issues older than the newest n #778

Closed as not planned

Description

@dan-petty

Context & Rationale

gh issues close-merged closes the issues a merged pull request names, because GitHub honours closing keywords only on the default branch. get_issue_states (github/issue_closure.py:179-190) lists issues newest first with --limit set to the highest wanted number, so a pull request that closes only #5 lists the 5 newest issues and never sees #5. No test covers it.

Scope & Deliverables

  • Deliverable: every wanted issue is read whatever its age, and one that can't be read is reported, never treated as closed or absent. A test covers a pull request that closes only an old issue.
  • Constraint: none.

Strategic Alignment

Activity

  1. added
    type/bug
    scope/github
    priority/p1-high
    on Oct 1, 2026
  2. dan-petty commented on Oct 1, 2026

    @dan-petty
    OwnerAuthor

    Placement (2026-10-01): stays in the backlog with no release slot. #743 (v0.2.26) replaces this code and names this item as superseded. Today it misses only issues numbered #326 or lower. Close this as not planned when #743 merges.

  3. added
    priority/p2-medium
    and removed
    priority/p1-high
    on Oct 2, 2026
  4. dan-petty commented on Oct 2, 2026

    @dan-petty
    OwnerAuthor

    Grooming (2026-10-02): Priority p1-high → p2-medium. The miss is reported, not silent. It affects only issues numbered #326 or lower, and nothing is lost: the issue just stays open.

    Checked against the code at the release/v0.2.25 tip.

  5. dan-petty commented on Oct 4, 2026

    @dan-petty
    OwnerAuthor

    Not planned: devops gh issues close-merged was removed by #743 (PR #1170). Issues are now closed by devops roadmap close, which reads every page of the merged pull requests, so the "newest n" limit this reports no longer exists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority/p2-mediumscope/githubtype/bug

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions