curl -X PUT \
    -H "Accept: application/vnd.github.v3+json" \
    -H "Authorization: token $(gh auth token)" \
     https://api.github.com/notifications \
    -d '{"last_read_at":"'"$(date -u +%Y-%m-%dT%H:%M:%S)"'Z"}'


refer to: https://github.com/orgs/community/discussions/6874#discussioncomment-2859125

修复因为币圈傻逼滥发广告导致 GitHub 个人页面出现消不掉的通知
需要注意:
1. 这条命令会清掉所有通知,最好把所有其他待处理的通知先处理了
2. 请提前装好 gh cli`
 
 
Back to Top