GitHub API - softwaresaved/rse-repo-analysis GitHub Wiki
Useful snippets for reference.
Events:
from github import Github
g = Github()
r = g.get_repo('softwaresaved/rse-repo-analysis')
events = r.get_events() # Paginated list of events
for e in events:
print((e.type, e.actor.login, e.created_at))
This doesn't seem to always return watch events - It did for my own repos, but not for this repo (which is in an org space)...
- WatchEvent: when someone stars a repository
- starring: bookmark repository, no notifications or activity feed
- used to be called watching
- subscribing: is now called watching, at least the concept is - not always the case in the API
- receive notifications for activity in a repository
-
subscribers_count
: users who receive notifications (eye icon) -
watchers
,watchers_count
,stargazers_count
: users who bookmarked the repo (star icon)