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}'