Skip to content

Commit 8c4e52d

Browse files
committed
Make steps explicit.
1 parent 8ed5b8a commit 8c4e52d

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

content/guides/getting-started.md

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -382,14 +382,17 @@ 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
383383
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
388-
convert the issue to a pull request now, we'll receive a `422` error telling us
389-
that 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
392-
convert the issue we created in the previous section:
385+
But at this point, we'll need to create a branch called `new-feature`
386+
with at least one commit so it's ahead of the `master` branch:
387+
388+
git clone https://github.com/repos/github/platform-sandbox
389+
git checkout -b new-feature
390+
touch cool-feature.rb
391+
git add cool-feature.rb
392+
git commit -m "Add new feature."
393+
git push origin new-feature
394+
395+
Now let's convert the issue we created in the previous section:
393396

394397
curl -i -H 'Authorization: token 5199831f4dd3b79e7c5b7e0ebe75d67aa66e79d4' \
395398
-d '{ \

0 commit comments

Comments
 (0)