Skip to content

Commit 1924b46

Browse files
committed
Reworded pull request creation examples.
1 parent 388f067 commit 1924b46

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

doc/api/pull_requests.rst

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,18 @@ View a pull request
2525
Open pull request
2626
'''''''''''''''''
2727

28-
To open a new pull request::
28+
To open a new pull request against the ``ask/python-github2`` project::
2929

3030
>>> pull = github.pull_requests.create("ask/python-github2", "master",
3131
... "JNRowe:my_new_branch",
3232
... title="Fancy features")
3333
>>> pull.number
3434
4
3535

36-
To attach code to an existing issue::
36+
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::
3740

3841
>>> pull = github.pull_requests.create("ask/python-github2", "master",
3942
... "JNRowe:my_new_branch",

0 commit comments

Comments
 (0)