diff options
| author | 2012-06-03 13:02:54 +0200 | |
|---|---|---|
| committer | 2012-06-03 13:02:54 +0200 | |
| commit | 897671db979e64754de2c53cbbe83fcbae37bb02 (patch) | |
| tree | 11ac9ede303971d2bcaf270d833fd4112c923509 /pygithub3/requests/repos | |
| parent | Merge 'services/orgs' (diff) | |
| parent | Change "Edit" to "Update" in docstring (diff) | |
| download | python-github3-897671db979e64754de2c53cbbe83fcbae37bb02.tar.xz python-github3-897671db979e64754de2c53cbbe83fcbae37bb02.zip | |
Merge branch 'services/issues' of https://github.com/alejandrogomez/python-github3 into services/issues
Conflicts:
docs/services.rst
pygithub3/github.py
pygithub3/requests/repos/__init__.py
Diffstat (limited to 'pygithub3/requests/repos')
| -rw-r--r-- | pygithub3/requests/repos/__init__.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/pygithub3/requests/repos/__init__.py b/pygithub3/requests/repos/__init__.py index 7bbcf3e..e7594d7 100644 --- a/pygithub3/requests/repos/__init__.py +++ b/pygithub3/requests/repos/__init__.py @@ -4,6 +4,7 @@ from pygithub3.requests.base import Request, ValidationError from pygithub3.resources.orgs import Team from pygithub3.resources.repos import Repo, Tag, Branch from pygithub3.resources.users import User +from pygithub3.resources.issues import Label, Milestone class List(Request): @@ -79,3 +80,17 @@ class List_branches(Request): uri = 'repos/{user}/{repo}/branches' resource = Branch + +class List_labels(Request): + + uri = 'repos/{user}/{repo}/labels' + resource = Label + +class List_milestones(Request): + + uri = 'repos/{user}/{repo}/milestones' + resource = Milestone + body_schema = { + 'schema': ('state', 'sort', 'direction'), + 'required': () + } |
