https://github.com/odino/github-unwatch
Unsubscribe / unwatch a whole bunch of github repositories.
https://github.com/odino/github-unwatch
api bash github github-api shell unwatch
Last synced: 11 months ago
JSON representation
Unsubscribe / unwatch a whole bunch of github repositories.
- Host: GitHub
- URL: https://github.com/odino/github-unwatch
- Owner: odino
- Created: 2018-03-05T23:34:09.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-05T23:34:26.000Z (almost 8 years ago)
- Last Synced: 2025-01-05T15:43:43.719Z (about 1 year ago)
- Topics: api, bash, github, github-api, shell, unwatch
- Language: Shell
- Size: 1000 Bytes
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# github-unwatch
Unsubscribe from watching a whole bunch of github repositories. This is a simple
shell script that automates something that'd be tedious to do manually...
## Usage
Set these env variables:
```
GH_USER: username
GH_TOKEN: access token for the github API
GH_PAGES: no. of pages in the subscription API, you can find it via curl -H "Authorization: token $GH_TOKEN" https://api.github.com/users/$GH_USER/subscriptions | grep Link
```
Then generate a list of all repos you're subscribed to:
```
$ ./github-unwatch.sh list_repos > list.txt
```
Examine the list and **delete repos you still want to watch** -- everything within
the list will be un-watched.
Now run the `unsubscribe` command and watch it free your GH inbox:
```
$ cat list.txt | ./github-unwatch.sh unsubscribe
Unsubscribed from:
- odino/some
- odino/thing
- odino/else
done.
```