kaizensoze/node-github

Is there any command to get sha blob of a file?

vydingding opened this issue · 3 comments

I want to update a file but I need to constantly change it's SHA in my node js code. Is there any command to get sha blob through .getSha or something?

But it still requires a previous sha. And I know getContent gives the sha, but it doesn't give it separately; it gives out ALL the contents of the file including the sha.

Right. I don't know of a getSha, but you can double check the github api doc: https://developer.github.com/v3/.