Skip to content

Commit cdf608d

Browse files
committed
Clarify converting an issue to pull request.
Running the example as is will result in a 422 error saying there's no commits between master and new-feature. This adds a note saying that you need a new-feature branch that's ahead of master to run the example.
1 parent ba91d41 commit cdf608d

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

content/guides/getting-started.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,8 +380,16 @@ the `Location` response header and the `url` field of the JSON response.
380380

381381
GitHub moves fast and the API tries to keep pace, but there are some things you
382382
can do with the API that you can't do on github.com. Using the API, you can
383-
turn an issue into a Pull Request. Let's convert the issue we just created
383+
turn an issue into a Pull Request.
384384

385+
But at this point, if you want to run this example to convert your issue to a
386+
pull request, you'll need to create a branch called new-feature with at least
387+
one commit so it's ahead of the master branch. Otherwise, if we try and convert
388+
the issue to a pull request now, we'll receive `422` error telling us that
389+
there's no commits between master and new-feature.
390+
391+
If you've created the new-feature branch and made a commit to it, let's convert
392+
the issue we created in the previous section:
385393

386394
curl -i -H 'Authorization: token 5199831f4dd3b79e7c5b7e0ebe75d67aa66e79d4' \
387395
-d '{ \

0 commit comments

Comments
 (0)