pksunkara / octonode

github api v3 in nodejs
MIT License
1.19k stars 237 forks source link

get sha by filepath #133

Open codletech opened 10 years ago

codletech commented 10 years ago

Hi, I need to get SHA by file path, When Im trying to get file contents (see: https://developer.github.com/v3/repos/contents/#get-contents ) by: ghrepo.contents(filePath, function(err, data, headers) { if(err) { }...

I am getting an error that the file SHA is missing.

pksunkara commented 10 years ago

Could you post an actual example? Thanks.