Skip to content

Commit 8b2e3f4

Browse files
committed
Add the ability to list the watchers of a repo.
1 parent ec62e41 commit 8b2e3f4

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

README.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,12 @@ Collaborators
203203

204204
>>> github.repos.remove_collaborator("ask/chishop", "schacon")
205205

206+
Watchers
207+
-------------
208+
209+
>>> watchers = github.repos.watchers("ask/chishop")
210+
211+
206212
Network
207213
-------
208214

github2/repositories.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,3 +91,8 @@ def tags(self, project):
9191
def branches(self, project):
9292
return self.make_request("show", project, "branches",
9393
filter="branches")
94+
95+
def watchers(self, project):
96+
return self.make_request("show", project, "watchers",
97+
filter="watchers")
98+

0 commit comments

Comments
 (0)