Skip to content

Instantly share code, notes, and snippets.

@malisipi
Created September 28, 2025 00:30
Show Gist options
  • Select an option

  • Save malisipi/0d0632a855fec20342e89490294f6f9f to your computer and use it in GitHub Desktop.

Select an option

Save malisipi/0d0632a855fec20342e89490294f6f9f to your computer and use it in GitHub Desktop.
clean phantom notifications github
# Create token at https://github.com/settings/tokens
# Allow notification access in token to allow
export GITHUB_TOKEN="gh-token"
curl -s -X PUT \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer $GITHUB_TOKEN" \
-H "X-GitHub-Api-Version: 2022-11-28" \
-d '{"last_read_at":"2025-09-28T00:00:00Z","read":true}' \ # IMPORTANT: Update time
https://api.github.com/notifications
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment