aboutsummaryrefslogtreecommitdiffstats
path: root/pygithub3/github.py
diff options
context:
space:
mode:
authorNat Williams <nwilliams@leapfrogonline.com>2012-04-17 17:35:31 -0500
committerNat Williams <nwilliams@leapfrogonline.com>2012-04-17 17:35:31 -0500
commit4539f80aa44e500422c5071d8e3d74de321b6225 (patch)
tree2efa8b3e2eaa19de229209b6d316e098944399d2 /pygithub3/github.py
parentmore specific exception for missing Request classes (diff)
downloadpython-github3-4539f80aa44e500422c5071d8e3d74de321b6225.tar.xz
python-github3-4539f80aa44e500422c5071d8e3d74de321b6225.zip
add pull request API
there are a few little issues remaining. Mostly regarding handling meaningful non-20x response codes
Diffstat (limited to 'pygithub3/github.py')
-rw-r--r--pygithub3/github.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/pygithub3/github.py b/pygithub3/github.py
index 0b302a1..0f15adf 100644
--- a/pygithub3/github.py
+++ b/pygithub3/github.py
@@ -17,9 +17,11 @@ class Github(object):
from pygithub3.services.users import User
from pygithub3.services.repos import Repo
from pygithub3.services.gists import Gist
+ from pygithub3.services.pull_requests import PullRequests
self._users = User(**config)
self._repos = Repo(**config)
self._gists = Gist(**config)
+ self._pull_requests = PullRequests(**config)
@property
def remaining_requests(self):
@@ -47,3 +49,10 @@ class Github(object):
:ref:`Gists service <Gists service>`
"""
return self._gists
+
+ @property
+ def pull_requests(self):
+ """
+ :ref:`Pull Requests service <Pull Requests service`
+ """
+ return self._pull_requests