Home

Awesome

gh-not 🔕

GitHub rule-based notifications management

Go Reference CI CodeQL

[!IMPORTANT] Under heavy development, expect nothing. PRs/issues welcome!

demo.gif

Install

Getting started

Run the following commands to get started and see the available commands and options:

gh-not --help
gh-not config --init
gh-not sync
gh-not --filter '.author.login | contains("4")'
gh-not --repl
...

How it works

gh-not fetches the notifications from GitHub and saves them in a local cache.

The synchronization between local and remote notifications is described in sync.go.

The sync command applies the rules to the notifications and performs the specified actions. It's recommended to run this regularly, see this section.

The other commands are used to interact with the local cache. It uses gh api-equivalent to modify the notifications on GitHub's side.

Configure

The configuration file contains the rules to apply to the notifications. Each rule contains three fields:

Automatic fetching

To automatically fetch new notifications and apply the rules, it is recommended to set up an automated process to run gh-not sync regularly.

E.g.

Footnotes

  1. Technically, gojq is used. ↩