philschatz / octokat.js

:octocat: Github API Client using Promises or callbacks. Intended for the browser or NodeJS.
http://philschatz.com/2014/05/25/octokat/
MIT License
421 stars 133 forks source link

Include a more complete example for creating/deleting files #266

Open mmiller42 opened 6 years ago

mmiller42 commented 6 years ago

The readme notes that:

To update a file you need the blob SHA of the previous commit

I think it would be helpful to include in the code example what is necessary to fetch the previous commit blob SHA.