Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit683a256

Browse files
committed
Expose the stargazers count for repositories
I'm now using repo._json_data['stargazers_count'], which is a hack.Making it part of the proper API.
1 parentad55e46 commit683a256

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)

[8]ページ先頭

©2009-2025 Movatter.jp