Geremia
Geremia

Reputation: 5646

Watch all starred GitHub projects

I have hundreds of starred GitHub repos, but none of them are watched. How can I easily watch all my starred repos without enabling watching one at a time? I'm sure this is possible with the GitHub API.

Upvotes: 0

Views: 75

Answers (1)

CJ Johnson
CJ Johnson

Reputation: 1111

Yes - you can do this with the API. You can use the list repositories being starred endpoint to generate a list, e.g.:

curl -u <USER>:<API_KEY> https://api.github.com/user/starred

Then use the set a repository subscription endpoint to watch your list of starred repositories by setting subscribed to true:

curl -X PUT -d {"subscribed":true} -u <USER>:<API_KEY> https://api.github.com/repos/:owner/:repo/subscription

Upvotes: 1

Related Questions