Created
November 5, 2025 12:40
-
-
Save christoph-jerolimov/0f13d8ad0a9ce6ba0dac4d22871920a5 to your computer and use it in GitHub Desktop.
Delete some spam GitHub notifications
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| set -e | |
| for i in {1..22}; do | |
| echo $i | |
| gh api "notifications?all=true&page=$i" | jq -r '.[] | select(.repository.full_name == "gitcoinco-n/gitcoin")' | |
| gh api "notifications?all=true&page=$i" | jq -r '.[] | select(.repository.full_name == "gitcoinco-n/gitcoin") | .id' | \ | |
| xargs -I {} gh api -X DELETE 'notifications/threads/{}' | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment