github 通知有蓝点,但是打开什么都没有怎么办?

前言

如图所示,我的github通知logo一直有个蓝点提示,但是点进去一看什么都没有

解决方案

在github提交issue后,很快就有人帮助了,先把解决办法写下来,原因放在后面

在console里黏贴这些代码,然后回车

    const token = "你刚刚创建的token黏贴在这里";
    
    fetch('https://api.github.com/notifications', {
      method: 'PUT',
      headers: {
        'Accept': 'application/vnd.github+json',
        'Authorization': `Bearer ${token}`
      },
      body: JSON.stringify({}) // An empty body marks all notifications as read.
    }).then(response => {
      if (response.status === 205) {
        console.log('✅ 成功了!通知logo上的小蓝点应该已经消失了,可以把token删掉了');
      } else {
        console.error('❌ Request failed. Status:', response.status);
        response.json().then(data => console.error('Error details:', data));
      }
    }).catch(error => console.error(' Bummer, there was a network error:', error));

原因分析

That blue dot in the inbox means GitHub thinks you still have an unread notification. If the notification itself has been cleared or the related issue was deleted, the counter can sometimes get stuck.

The simplest way to reset it is to open your notifications page and click Mark all as read in the top right. That clears the unread state across all repos. If the dot goes away after refreshing, the issue was just a stale entry.

参考

there is a blue dot in my inbox, but i can’t find nothing in notification page · community · Discussion #175514