Get desktop notifications for Github pull request reviews.
npm install -g ghrn
If using asdf, you need to reshim nodejs
to see the ghrn
CLI.
asdf reshim nodejs
- Navigate to your Github settings,
- Create a Github personal token with the
notifications
scope - Enable SSO if needed to access organizations' repos
- Create a
GHRN_TOKEN
environment variable with the token created in step 2 as value
- The first time
ghrn
runs, you will be asked to allow Desktop notifications - Go to System preferences > Notifications and look for terminal-notifier
- Choose the
Alerts
alert style, otherwise the notifications disappear after 5 seconds and they can't be clicked to reach the PR URL
$ ghrn --help
Get notified for review requests
USAGE
$ ghrn
OPTIONS
-f, --frequency=frequency [default: 60] how often (in seconds) should notifications be checked
-h, --help show CLI help
-v, --version show CLI version
Running ghrn
without any parameters will poll Github every 60 seconds for review requests as long as it keeps running.