Github CLI extension to check unread notifications in this page.
As the feature is available in gh
, see this issue.
Still WIP.
gh extension install bambooom/gh-noti
Needs jq
installed
brew install jq
gh noti
: list all unread notifications
ID Repo Type Title Reason Updated
------- ------ ------- --------------- ------ -------------------
2371625702 zzzzc/openresty-doc PullRequest fix markdown toc sidebar author 2021-09-03T05:56:14Z
1209817679 mengxiong10/vue2-datepicker Issue Vue3 compatibility manual 2021-08-27T20:05:51Z
535892525 axios/axios Issue Handling onUploadProgress on network failure manual 2021-07-27T07:15:54Z
Or no unread:
✨ No unread notifications.
-
gh noti read
: mark all notifications as read -
gh noti read <id>
: use the id in the list to mark one thread as read
- mark all as read, https://docs.github.com/en/rest/reference/activity#mark-notifications-as-read
- mark one as read by id, https://docs.github.com/en/rest/reference/activity#mark-a-thread-as-read
- open a unread notification thread url
- GitHub CLI 2.0 includes extensions! | The GitHub Blog
- Creating GitHub CLI extensions - GitHub Docs
- no API for marking a notification as 'Done' status as it seems relatively new and maybe changed later, see https://github.community/t/no-api-command-for-new-done-state-of-notifications/122508