aboutsummaryrefslogtreecommitdiffstats
path: root/docs/pull_requests.rst
diff options
context:
space:
mode:
authorDavid Medina <davidmedina9@gmail.com>2012-04-28 23:43:28 +0200
committerDavid Medina <davidmedina9@gmail.com>2012-04-28 23:43:28 +0200
commitc24e6efbb59065dcb6655d47bb7b0254f2753bff (patch)
tree32290846e640555ec4804c53c4aab62cbbe7bd13 /docs/pull_requests.rst
parent:sparkles: Release 0.3 :sparkles: (diff)
parentdocstring link typo (diff)
downloadpython-github3-c24e6efbb59065dcb6655d47bb7b0254f2753bff.tar.xz
python-github3-c24e6efbb59065dcb6655d47bb7b0254f2753bff.zip
Merged pull request #4 from natw:services/pull_requests
Diffstat (limited to 'docs/pull_requests.rst')
-rw-r--r--docs/pull_requests.rst33
1 files changed, 33 insertions, 0 deletions
diff --git a/docs/pull_requests.rst b/docs/pull_requests.rst
new file mode 100644
index 0000000..40c3435
--- /dev/null
+++ b/docs/pull_requests.rst
@@ -0,0 +1,33 @@
+.. _Pull Requests service:
+
+Pull Requests service
+=====================
+
+**Example**::
+
+ from pygithub3 import Github
+
+ gh = Github()
+
+ pull_requests = gh.pull_requests.list().all()
+ for pr in pull_requests:
+ commits = gh.pull_requests.list_commits(pr.number).all()
+
+Pull Requests
+-------------
+
+.. autoclass:: pygithub3.services.pull_requests.PullRequests
+ :members:
+
+ .. attribute:: comments
+
+ :ref:`Pull Request Comments service`
+
+
+.. _Pull Request Comments service:
+
+Pull Request Comments
+---------------------
+
+.. autoclass:: pygithub3.services.pull_requests.Comments
+ :members: