1 parent 388f067 commit 1924b46Copy full SHA for 1924b46
1 file changed
doc/api/pull_requests.rst
@@ -25,15 +25,18 @@ View a pull request
25
Open pull request
26
'''''''''''''''''
27
28
-To open a new pull request::
+To open a new pull request against the ``ask/python-github2`` project::
29
30
>>> pull = github.pull_requests.create("ask/python-github2", "master",
31
... "JNRowe:my_new_branch",
32
... title="Fancy features")
33
>>> pull.number
34
4
35
36
-To attach code to an existing issue::
+This creates a pull request for changes in ``JNRowe``'s ``my_new_branch`` and
37
+asks for it to be merged to ``ask``'s ``master`` branch.
38
+
39
+To attach code to an existing issue and make it a pull request::
40
41
42
0 commit comments