Errata

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
ePub
Page 26
first code example

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

curl -u username -d '{"scopes":["public_repo"]}' \ https://api.github.com/authorizations

should be:

curl -u username -d '{"scopes":["public_repo"], "notes": "My app"}' \ https://api.github.com/authorizations

https://developer.github.com/v3/oauth_authorizations/#create-a-new-authorization

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"}' https://api.github.com/authorizations

Nick Rowlands  Feb 27, 2016  Dec 16, 2016
PDF
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: https://github.com/xrd/building-tools-with-github/blob/master/chapter-3-wikis-and-gollum/image.rb#L37

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

Ken Anderson  Jul 12, 2016  Dec 16, 2016