Reputation: 2772
For a while now my GitHub notifications page has been showing "1 unread" notification, even though all my notifications are "read". Nothing is listed when clicking the "unread" tab (or the "all" tab for that matter).
How can I clear this? It's quite annoying!
Upvotes: 16
Views: 728
Reputation: 1193
If you can't use the UI, you can use the API instead from Github.com docs.
# GitHub CLI api
# https://cli.github.com/manual/gh_api
gh api \
--method PUT \
-H "Accept: application/vnd.github+json" \
-H "X-GitHub-Api-Version: 2022-11-28" \
/notifications \
-f "last_read_at=2022-06-10T00:00:00Z" -F "read=true"
For me I used the github cli (gh auth login first) as i didn't have to deal with tokens manually.
Upvotes: 2
Reputation: 2772
So - I found a way to clear this (with a bit of help from this thread: https://github.com/community/community/discussions/6874)
Here's the process I used:
Done
tabselect all
then click move to inbox
Inbox
select all
then mark as unread
select all xxx messages
Done
Hopefully this should clear the ghost "unread" message!
Upvotes: 26