GitXplorerGitXplorer
s

bankruptcy

public
9 stars
4 forks
4 issues

Commits

List of commits on branch master.
Verified
d6352cb6bad0171dcbc0a1b24b41298b25f26067

Bump node-fetch from 2.6.0 to 2.6.1 (#63)

ddependabot[bot] committed 4 years ago
Verified
7a8dbe9cdcf723bd40993943ce7758bc93796d18

Bump @types/node from 13.9.8 to 14.0.6 (#59)

ddependabot-preview[bot] committed 5 years ago
Verified
784210100aa49070d3345b980afbd5596156f52d

Bump ts-node from 8.8.1 to 8.10.2 (#61)

ddependabot-preview[bot] committed 5 years ago
Verified
1c5a04e054d4fd24822d0d2b5473a072caa35260

Bump prettier from 2.0.2 to 2.0.5 (#55)

ddependabot-preview[bot] committed 5 years ago
Verified
bd40f72ac7638ec17fd39356a8e0bdfc1b9be8f8

Bump moment from 2.24.0 to 2.26.0 (#60)

ddependabot-preview[bot] committed 5 years ago
Verified
69f39eae1fec5dcaac27514188ec459bd39b26bc

Bump typescript from 3.8.3 to 3.9.3 (#62)

ddependabot-preview[bot] committed 5 years ago

README

The README file for this repository.

Notification Bankruptcy!

This is a proof of concept for bulk unsubscribing from a given set of organizations and repositories, because life is too short for some things.

Installation

Currently this is only usable from source, so you'll need to clone this repository and run yarn to install the dependencies it requires:

$ yarn

Usage

This script looks for an environment variable named GITHUB_ACCESS_TOKEN which should be a personal access token that has the notifications scope set, otherwise it will error.

To preview the current notifications:

$ yarn bankruptcy [orgs or owner/repo aliases]

To unsubscribe from these organizations

$ yarn bankruptcy --unsubscribe [orgs or owner/repo aliases]

No guarantees are provided for this tool. Use at your own risk.

What It's Doing

The GitHub API provides details about your current notifications, and these are persisted even after you remove yourself as the member of an organization.

This tool lets you see what notifications you have associated with a given set of organizations or repositories, and will unsubscribe if you pass in the --unsubscribe flag.

Examples

Searching for notifications on a specific repository

$ yarn bankruptcy atom/atom
yarn run v1.7.0
$ ts-node script/bankruptcy.ts atom/atom
Note: You have 684 pages of notifications but this script will be limited to the first 100 pages. This might take a while to crunch the data.

 - notification 349024187 from repo atom/atom with reason: subscribed
 - subject: 'Atom 1.28 crashes on macOS with Shadowsocks proxy'

✨  Done in 57.70s.

Searching for notifications on a specific organization

$ yarn bankruptcy atom
yarn run v1.7.0
$ ts-node script/bankruptcy.ts atom
Note: You have 684 pages of notifications but this script will be limited to the first 100 pages. This might take a while to crunch the data.

 - notification 352634327 from repo atom/metrics with reason: subscribed
 - subject: 'Add metric to help assess awareness of key binding customizability'

 - notification 349024187 from repo atom/atom with reason: subscribed
 - subject: 'Atom 1.28 crashes on macOS with Shadowsocks proxy'

 - notification 287987267 from repo atom/ide-php with reason: subscribed
 - subject: 'IDE-PHP language server stopped unexpectedly. Without any description (Blank)'

✨  Done in 50.55s.

Unsubscribing from notifications on a specific organization

$ yarn bankruptcy atom --unsubscribe
yarn run v1.7.0
$ ts-node script/bankruptcy.ts atom --unsubscribe
Note: Unsubscribing from all notification threads that match the provided organizations

Note: You have 652 pages of notifications but this script will be limited to the first 100 pages

 - unsubscribed from notification 352634327 from repo atom/metrics
 - unsubscribed from notification 349024187 from repo atom/atom
 - unsubscribed from notification 287987267 from repo atom/ide-php
✨  Done in 54.70s.