Building Tools with GitHub

Errata for Building Tools with GitHub

Submit your own errata for this product.

The errata list is a list of errors and their corrections that were found after the product was released. If the error was corrected in a later version or reprint the date of the correction will be displayed in the column titled "Date Corrected".

The following errata were submitted by our customers and approved as valid errors by the author or editor.

Color key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update

Version Location Description Submitted By Date submitted Date corrected
Page 26
first code example

It looks like OAuth Authorizations API requires the "notes" field.

curl -u username -d '{"scopes":["public_repo"]}' \

should be:

curl -u username -d '{"scopes":["public_repo"], "notes": "My app"}' \

Note from the Author or Editor:
Looks like GitHub has changed it again since your error was noted.

"note" does not work, and the error message returned implies you need to provide a "description" (but this also fails).

This works:

curl -u username -d '{"scopes":["public_repo"], "note": "Something"}'

Nick Rowlands  Feb 27, 2016  Dec 16, 2016
Page 44
Bottom of Page 44

Okay, I just upgraded to the PDF version of the book and, unfortunately, the code and text that describes how to add images to the wiki is also missing there. (See my previously submitted errata for context.)

Any chance the missing text/code can be added to the PDF version of the book and released as an update?

Note from the Author or Editor:
You are correct, this was omitted from the PDF.

The correct code is in the associated repository:

I'll work on getting the book updated but for now please use the above code.

Ken Anderson  Jul 12, 2016  Dec 16, 2016