Use the GitHub API to manage GitHub repository notification subscription lists.
- Create a GitHub personal access token. This should be made by a member of the organization who can see private repositories (e.g., a member of the
Owners
team). - Place the access token in the file
~/.github.yml
:
token: 1234567890feedfacedeadbeefcafe0987654321
-
Create a text file in
~/.github/subscribed-repos.txt
which lists each repository you wish to be subscribed to, in the formatowner/reponame
, one per line. -
Bundle, and run the script:
$ bundle install --path vendor/bundler
$ bundle exec script/manage-notifications.rb
You can also set the environment variable $DEBUG
if you want more verbose output during the fetch process.