Skip to content

Instantly share code, notes, and snippets.

@RoootTheFox
Last active September 26, 2025 17:00
Show Gist options
  • Select an option

  • Save RoootTheFox/627087f93a4d6ffa818401e1c46f911b to your computer and use it in GitHub Desktop.

Select an option

Save RoootTheFox/627087f93a4d6ffa818401e1c46f911b to your computer and use it in GitHub Desktop.
fix github ghost notifications

fix ghost notifications

so github had a huge spam wave recently yada yada which left ppl with notifications that you cant get rid of in the ui.

Warning

this will mark ALL your notifications as read

here's the fix (curl and gh cli):

gh cli

gh api --method PUT \
  -H "Accept: application/vnd.github+json" \
  -H "X-GitHub-Api-Version: 2022-11-28" \
  /notifications -F "read=true"

curl (dont forget to feed it a token with notification permissions)

curl -L \
  -X PUT \
  -H "Accept: application/vnd.github+json" \
  -H "Authorization: Bearer <YOUR-TOKEN>" \
  -H "X-GitHub-Api-Version: 2022-11-28" \
  https://api.github.com/notifications \
  -d '{"read":true}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment