aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorDavid Medina <davidmedina9@gmail.com>2012-05-12 19:04:23 +0200
committerDavid Medina <davidmedina9@gmail.com>2012-05-12 22:47:09 +0200
commit24a3ed5dcd2264a64e234ea7bd526049fafe7616 (patch)
tree6131f221a9bf9b596dc139715d4e79f090bb55c3 /docs
parentDeleted 'dispatch' decorator. No sense (diff)
downloadpython-github3-24a3ed5dcd2264a64e234ea7bd526049fafe7616.tar.xz
python-github3-24a3ed5dcd2264a64e234ea7bd526049fafe7616.zip
Some fixes/typos and 'validate_body' related
Diffstat (limited to 'docs')
-rw-r--r--docs/pull_requests.rst8
1 files changed, 5 insertions, 3 deletions
diff --git a/docs/pull_requests.rst b/docs/pull_requests.rst
index 40c3435..09313eb 100644
--- a/docs/pull_requests.rst
+++ b/docs/pull_requests.rst
@@ -7,11 +7,10 @@ Pull Requests service
from pygithub3 import Github
- gh = Github()
+ gh = Github(user='octocat', repo='sample')
pull_requests = gh.pull_requests.list().all()
- for pr in pull_requests:
- commits = gh.pull_requests.list_commits(pr.number).all()
+ pull_request_commits = gh.pull_requests.list_commits(2512).all()
Pull Requests
-------------
@@ -31,3 +30,6 @@ Pull Request Comments
.. autoclass:: pygithub3.services.pull_requests.Comments
:members:
+
+.. _github pullrequests doc: http://developer.github.com/v3/pulls
+.. _github pullrequests comments doc: http://developer.github.com/v3/pulls/comments