8000 Merge pull request #193 from seveas/stargazers · krxsky/github3.py@8a36603 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8a36603

Browse files
committed
Merge pull request sigmavirus24#193 from seveas/stargazers
Expose the stargazers count for repositories
2 parents ad55e46 + 683a256 commit 8a36603

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

github3/repos/repo.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,10 @@ def __init__(self, repo, session=None):
124124
#: Size of the repository.
125125
self.size = repo.get('size', 0)
126126

127+
# The number of stargazers
128+
#: Number of users who starred the repository
129+
self.stargazers = repo.get('stargazers_count', 0)
130+
127131
# SSH url e.g. git@github.com/sigmavirus24/github3.py
128132
#: URL to clone the repository via SSH.
129133
self.ssh_url = repo.get('ssh_url', '')

0 commit comments

Comments
 (0)
0