https://github.com/drapegnik/fix-gh-watchlist
cli to unsubscribe (ignore) github repos
https://github.com/drapegnik/fix-gh-watchlist
github github-cli github-notifications github-watchlist
Last synced: 9 months ago
JSON representation
cli to unsubscribe (ignore) github repos
- Host: GitHub
- URL: https://github.com/drapegnik/fix-gh-watchlist
- Owner: Drapegnik
- Created: 2024-04-18T11:36:30.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-26T07:54:13.000Z (over 1 year ago)
- Last Synced: 2025-02-08T00:43:41.948Z (11 months ago)
- Topics: github, github-cli, github-notifications, github-watchlist
- Language: TypeScript
- Homepage: https://npmjs.com/package/fix-gh-watchlist
- Size: 20.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# fix-gh-watchlist
[](https://www.npmjs.com/package/fix-gh-watchlist)
cli to unsubscribe (ignore) github repos from https://github.com/watching
## usage
1. Create new [GitHub PAT Token](https://github.com/settings/tokens/new?description=Fix+watchlist+token&scopes=repo,notifications) - Make sure it has access to repo & notifications
2. Install script:
```bash
npm install -g fix-gh-watchlist
```
3. Create a `whitelist.txt` file with repo names (in `org/repo` format) you want to keep watching
4. Run the script:
```bash
PAT_TOKEN= fix-gh-watchlist --org=github -w whitelist.txt
```
## development
1. create a `.env` file with the following content:
```
PAT_TOKEN=
```
2. then run:
```bash
npm i
npm run watch
npm start -- --org=github -w whitelist.txt
```
### build
```bash
npm run build
cd dist && npm install -g .
# test
fix-gh-watchlist --help
# cleanup
npm uninstall -g fix-gh-watchlist
```
### release
1. `make version-patch`
2. `git push --follow-tags`
3. `make publish`