From 4539f80aa44e500422c5071d8e3d74de321b6225 Mon Sep 17 00:00:00 2001 From: Nat Williams Date: Tue, 17 Apr 2012 17:35:31 -0500 Subject: add pull request API there are a few little issues remaining. Mostly regarding handling meaningful non-20x response codes --- pygithub3/github.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'pygithub3/github.py') 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 ` """ return self._gists + + @property + def pull_requests(self): + """ + :ref:`Pull Requests service Date: Thu, 19 Apr 2012 10:54:51 -0500 Subject: docstring link typo --- pygithub3/github.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pygithub3/github.py') diff --git a/pygithub3/github.py b/pygithub3/github.py index 0f15adf..9016742 100644 --- a/pygithub3/github.py +++ b/pygithub3/github.py @@ -53,6 +53,6 @@ class Github(object): @property def pull_requests(self): """ - :ref:`Pull Requests service ` """ return self._pull_requests -- cgit v1.2.3-59-g8ed1b