Skip to content

Instantly share code, notes, and snippets.

@jonchurch
Last active January 24, 2022 15:03
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jonchurch/2bf9d53664492a29993e05eaa58462de to your computer and use it in GitHub Desktop.
Save jonchurch/2bf9d53664492a29993e05eaa58462de to your computer and use it in GitHub Desktop.
Watch all repos in a github org

Watch All Repos in a Github Organization

Visit your tokens page and generate a new token with the scopes repo, notifications.

Copy it to your clipboard. Keep the page open until you're done watching orgs, in case you need to copy it again.

Then open your terminal and replace TOKEN with your token and YOURORG with the organization or username that you want to watch in the following command:

WATCH_GH_REPOS=TOKEN npx watch-gh-repos -o -w YOURORG

Repeat with each org you want to watch.

Unwatching

To unwatch, use the -u flag:

WATCH_GH_REPOS=TOKEN npx watch-gh-repos -o -u YOURORG
@podarok
Copy link

podarok commented Jan 24, 2022

THis is what I getting

Must use import to load ES Module: /Users/podarok/.npm/_npx/17424/lib/node_modules/watch-gh-repos/node_modules/meow/index.js
require() of ES modules is not supported.
require() of /Users/podarok/.npm/_npx/17424/lib/node_modules/watch-gh-repos/node_modules/meow/index.js from /Users/podarok/.npm/_npx/17424/lib/node_modules/watch-gh-repos/cli.js is an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which defines all .js files in that package scope as ES modules.
Instead rename index.js to end in .cjs, change the requiring code to use import(), or remove "type": "module" from /Users/podarok/.npm/_npx/17424/lib/node_modules/watch-gh-repos/node_modules/meow/package.json.

@jonchurch
Copy link
Author

@podarok Argh, looks like the meow package is no longer interop with CJS. I don't control the watch-gh-repos package so I can't make the change to unblock you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment