From a5add066dab2ee4260272a7241b4cd51de69d343 Mon Sep 17 00:00:00 2001 From: Alex Grin Date: Wed, 2 May 2018 11:24:14 -0400 Subject: [PATCH] Created Managing Github notifications (markdown) --- Managing-Github-notifications.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Managing-Github-notifications.md diff --git a/Managing-Github-notifications.md b/Managing-Github-notifications.md new file mode 100644 index 0000000..7c807a3 --- /dev/null +++ b/Managing-Github-notifications.md @@ -0,0 +1,25 @@ +When you get added to the lbryio github org, you'll automatically be subscribed to all of our repos. This creates a lot of noise in your inbox, and there's no good way to turn this off. Here's how you can deal with it. + +## Option 1: Before you get added + +If you happen to find this page before you get added to the org, you can temporarily disable automatic watching of repos. Go to [your notification settings](https://github.com/settings/notifications) and uncheck the "Automatically watch repositories" checkbox. You can re-check this box after you've been added to the org. + +## Options 2: After you've been added + +If you've already been subscribed to all the notifications, here's what to do. First go to https://github.com/watching and run the following code in your browser console. This will unwatch all the lbryio repos that you're subscribed to. + +```js +Array.prototype.forEach.call(document.querySelectorAll('.js-subscription-row'), function(el, i){ + const isYourOrganisation = el.querySelectorAll("a[href^='/lbryio']"); + if(isYourOrganisation.length){ + const button = el.querySelectorAll('button[type="submit"]')[0]; + if (button.innerHTML == "Unwatch") { + button.click(); + } + } +}); +``` + +*source: https://stackoverflow.com/a/27912449* + +Next, go down the list and click Watch on the repos you care about. \ No newline at end of file