Skip to content

Instantly share code, notes, and snippets.

View randybb's full-sized avatar
🦎

Roman Priesol randybb

🦎
  • Slovakia, Hviezdoslavov
  • 03:59 (UTC +02:00)
View GitHub Profile
@BartMassey
BartMassey / github-unghost.sh
Last active October 18, 2025 12:54
Mark all notifications as read ("Ghost notification" remover)
#!/bin/sh
# Mark all notifications as read, including "ghost" notifications.
# Works on Linux, requires a "classic" auth token be present in `~/.github-oauthtoken`
# and also that `gh` is installed. You could presumably use `gh auth login` instead
# if you want to authenticate that way.
#
# Works for me, use at your own risk.
#
# https://github.com/orgs/community/discussions/6874
# https://docs.github.com/en/rest/activity/notifications?apiVersion=2022-11-28#mark-notifications-as-read