gh extension to interact with GitHub notifications.
You need to install fzf in order to use the interactive mode. Otherwise you will have to add the -s flag at all times.
gh extension install daniel-leinweber/gh-notifications
> gh notifications # view unread notifications
> gh notifications -r # mark all notifications as read
> gh notifications -h # show help
Usage: gh notifications [--flags]
View and search GitHub notifications. When using fzf you can
select the associated pull request or issue by hitting enter
to get more info on it.
Flags:
-a include all notifications
-r mark all notifications as read
-s print a static output list (do not use fzf)
-p show only participating or mention notifications
-n max number of notifications to show (default 30)
If you are facing an error like '\r': command not found
you might need to modify the line endings of the gh-notifications file as follows:
sed -i 's/\r$//' filename
Here filename needs to be the full path of the gh-notifications script file.