From 1a04f3bc243dde02ba6e24602d96debb55a5c698 Mon Sep 17 00:00:00 2001 From: Reid 'arrdem' McKenzie Date: Thu, 27 Jul 2023 17:26:03 -0600 Subject: [PATCH] More notes --- projects/gh-unnotifier/README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/projects/gh-unnotifier/README.md b/projects/gh-unnotifier/README.md index 07601ec..409d688 100644 --- a/projects/gh-unnotifier/README.md +++ b/projects/gh-unnotifier/README.md @@ -15,12 +15,18 @@ You're gonna need a `config.toml` like ``` toml [gh-unnotifier] api_key = "your secret value" +org_shitlist = [ + "your-employer-here", + "their-oss-group-here", +] ``` And then you can `bazel run //projects/gh-unnotifier -- maintain --config $(realpath config.toml)`. By default, `maintain` will go over your notifications once a minute and mark anything as read which: 1. Relates to a closed (merged or abandoned) PR -2. Does not have an outstanding review request against EITHER the user OR one of the user's teams (someone else already reviewed it) +2. Does not have an outstanding review request against EITHER the user OR one of the user's teams (someone else already reviewed it) AND is in an org in the `org_shitlist` + +Note that the `org_shitlist` serves as a gate to allow you to opt notifications from organizations into auto-dismissal, rather than auto-dismissing anything you aren't a reviewer on from anywhere as that covers many other potentially desirable notifications too. It would be nice if there was a way to quickly ascertain what review permissions the configured user has and whether requested reviews to relevant groups have already been provided, but so far that's a pipe dream.