MacOS notifications from GitHub
- Clone this repo
- Install dependencies
brew install jq terminal-notifier
- Create a GitHub Personal Access Token with only one scope:
notifications
- Copy the token to your clipboard
- Open Keychain Access, select
login
on the left, click + to add a new entry, et Keychain Item Name: anything you want, Account Name:github_token
, Password: paste the Personal Access Token from your clipboard - Call the script with the number of minutes between notifications, e.g.
./notify.sh 10
for 10 minute intervals - If there is a popup asking to allow the script to access to the keychain, type your Mac user password and click Always Allow
- Click on the notification to open your GitHub notifications page
- Choose Banner (temporary) or Alert (persistent) in System Preferences > Notifications > terminal-notifier
- Mark notifications as Read to stop them
- Add a sound https://github.com/julienXX/terminal-notifier
- Try a more advanced notifier https://github.com/dschep/ntfy