Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unsubscribe from all/selected repository notifications #641

Open
leegee opened this issue Apr 8, 2016 · 15 comments

Comments

Projects
None yet
@leegee
Copy link

commented Apr 8, 2016

Steps to reproduce:

  1. Take your third short-term contract in a year
  2. Talk them into subscribing to GitHub / get corp GitHub access
  3. Get subscribed to 100+ repositories
  4. Spend an hour clicking through each to unsubscribe from each repo's notifications

Please make it easier.

@cirosantilli

This comment has been minimized.

Copy link
Collaborator

commented Apr 9, 2016

More precisely, do you want to unsubscribe from all repositories of a given organization?

@TPS

This comment has been minimized.

Copy link
Collaborator

commented Apr 10, 2016

Duplicates #633?

@cirosantilli

This comment has been minimized.

Copy link
Collaborator

commented Apr 10, 2016

@TPS I'd rather keep this open, since #633 is too broad, and this is more specific.

Also I think this is about unsub from a given organization at once (hopefully OP will confirm), which does not seem to be mentioned at #633 But it's hard to be sure, since that one is so huge.

Small specific issues rock.

@leegee

This comment has been minimized.

Copy link
Author

commented Apr 10, 2016

Hopefully related :)

On Sun, 10 Apr 2016, 08:31 Ciro Santilli 六四事件 法轮功 包卓轩, <
notifications@github.com> wrote:

@TPS https://github.com/TPS I'd rather keep this open, since #633
#633 is too broad, and this is
more specific.

Also I think this is about unsub from a given organization at once
(hopefully OP will confirm), which does not seem to be mentioned at #633
#633 But it's hard to be sure,
since that one is to huge.

Small specific issues rock.


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#641 (comment)

@madhatter215

This comment has been minimized.

Copy link

commented Sep 12, 2017

I experienced this just recently. Any chance that someone's working on a feature to unsubscribe all from an organization?

@acjh

This comment has been minimized.

Copy link

commented Sep 12, 2017

Urgent? Run this on https://github.com/watching:

function unwatchOrgRepos(orgName) {
  var repoItems = document.querySelectorAll(".repo-list > li")
  repoItems.forEach(function (item) {
    var repoOrgElement = item.querySelector(".repo-name").previousElementSibling;
    var repoOrgName = repoOrgElement.innerText;
    if (repoOrgName === orgName) {
      var unwatchButton = item.querySelector(".js-unsubscribe-form > button");
      unwatchButton.click();
      var itemName = repoOrgElement.parentElement.innerText;
      console.log("Unwatched " + itemName);
    }
  });
}

Usage:

unwatchOrgRepos("test");
@joaomarceloods

This comment has been minimized.

Copy link

commented Oct 16, 2017

@acjh

+1 wish this feature

@GentryRiggen

This comment has been minimized.

Copy link

commented Jan 8, 2019

There is an "Unwatch all" button now on your github watching page now.

@Paskalouis

This comment has been minimized.

Copy link

commented Feb 6, 2019

Hi, I think this issue can be closed since I think @GentryRiggen 's solution is good enough.
Better to unwatch all then rewatch repos I want to watch instead of unsubscribe hundreds of repo.

@TPS TPS added the implemented label Mar 12, 2019

@TPS TPS closed this Mar 12, 2019

@Luc45

This comment has been minimized.

Copy link

commented Mar 26, 2019

How do I Unwatch all from a specific organization only?

I had to run @acjh's script to achieve this, but there should be an official way to do this...

@timarmstrong

This comment has been minimized.

Copy link

commented Apr 8, 2019

I don't see an "Unwatch All" button and it looks like the page changed enough that some previous scripts didn't work for me. I managed to tweak one to work:
Array.prototype.slice.apply(document.querySelectorAll('.Box-row')).forEach(el => { const org = el.querySelector('a[href^="/ORG_NAME"]'); console.log(org); if (org) el.querySelector('button').click()})

@Paskalouis

This comment has been minimized.

Copy link

commented Apr 11, 2019

If the unwatch button is removed, would it better if this issue reopened again ?

@adi518

This comment has been minimized.

Copy link

commented Apr 11, 2019

The button was removed, they moved this feature to Settings. Now you have to go to: settings -> Notifications -> untick Automatically watch repositories.

@TPS TPS removed the implemented label Apr 11, 2019

@TPS

This comment has been minimized.

Copy link
Collaborator

commented Apr 11, 2019

I'm not currently seeing the Unwatch All button or equivalent, so reopening. 😭

@TPS TPS reopened this Apr 11, 2019

@ericgroom

This comment has been minimized.

Copy link

commented Jul 11, 2019

Also running into this issue, I joined a new organization with hundreds of repositories and am only interested in one or two of them but am getting emails every 3-5 minutes with updates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.