Skip to content

Drapegnik/fix-gh-watchlist

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fix-gh-watchlist

NPM Version

cli to unsubscribe (ignore) github repos from https://github.com/watching

usage

  1. Create new GitHub PAT Token - Make sure it has access to repo & notifications
  2. Install script:
npm install -g fix-gh-watchlist
  1. Create a whitelist.txt file with repo names (in org/repo format) you want to keep watching
  2. Run the script:
PAT_TOKEN=<your_github_pat_token> fix-gh-watchlist --org=github -w whitelist.txt

development

  1. create a .env file with the following content:
PAT_TOKEN=<your_github_pat_token>
  1. then run:
npm i
npm run watch
npm start -- --org=github -w whitelist.txt

build

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