`netiquette` - Ignore null close dates by moraesc · Pull Request #10045 · refined-github/refined-github · GitHub
Skip to content

netiquette - Ignore null close dates - #10045

Open
moraesc wants to merge 3 commits into
refined-github:mainfrom
moraesc:fix-netiquette-null-close-date
Open

netiquette - Ignore null close dates#10045
moraesc wants to merge 3 commits into
refined-github:mainfrom
moraesc:fix-netiquette-null-close-date

Conversation

@moraesc

@moraesc moraesc commented Sep 4, 2026

Copy link
Copy Markdown

Closes #10022

The page can identify a conversation as closed while the Issues API response still has closed_at: null, such as during a state transition. assertDefined permits null, so the value was passed to new Date(null) and became the Unix epoch. The twas formatter then displayed that date as "58 years ago."

Ignore the null API value instead of rendering a misleading banner, and cover both valid and null close dates with unit tests.

Test URLs

#10022

Screenshot

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 65c6c9b6-28e5-448a-a6cf-f4ac05df99c9
@github-actions github-actions Bot added the bug label Sep 4, 2026
@moraesc
moraesc marked this pull request as ready for review September 4, 2026 22:09
Comment thread source/github-helpers/netiquette.ts Outdated
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 65c6c9b6-28e5-448a-a6cf-f4ac05df99c9
@moraesc
moraesc requested a review from fregante September 5, 2026 23:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

"This issue was closed 58 years ago"

2 participants