GitHub 通知显示“未读”

问题描述 投票:0回答:2

有一段时间,我的 GitHub 通知页面一直显示“1 个未读”通知,即使我的所有通知都是“已读”。单击“未读”选项卡(或“全部”选项卡)时,不会列出任何内容。

我怎样才能清除这个?真是烦人啊!

github
2个回答
16
投票

所以 - 我找到了一种方法来清除这个问题(在这个线程的一些帮助下:https://github.com/community/community/discussions/6874

这是我使用的过程:

  • 转到
    Done
    选项卡
  • 单击
    select all
    ,然后单击
    move to inbox
  • 转到
    Inbox
  • 单击
    select all
    ,然后单击
    mark as unread
  • 单击显示
    select all xxx messages
  • 的链接
  • 点击
    Done

希望这可以清除幽灵“未读”消息!


0
投票

如果您无法使用 UI,您可以使用 Github.com 文档中的 API。

https://docs.github.com/en/rest/activity/notifications?apiVersion=2022-11-28#mark-notifications-as-read

# GitHub CLI api
# https://cli.github.com/manual/gh_api

gh api \
  --method PUT \
  -H "Accept: application/vnd.github+json" \
  -H "X-GitHub-Api-Version: 2022-11-28" \
  /notifications \
   -f "last_read_at=2022-06-10T00:00:00Z" -F "read=true"

对我来说,我使用了 github cli(首先进行 gh 身份验证登录),因为我不必手动处理令牌。

© www.soinside.com 2019 - 2024. All rights reserved.