node.js - How to retrieve the content of a pull request patch file from a private repo? -
i have private repo , need patch file contents pull request. using this nodejs api.
github.pullrequests.get(msg,function(err,p){ //[...] console.log(p.patch_url); //i patch url like: https://github.com/:user/:repo/pull/1.patch //[...] }) how can content of file either using api or other method (curl, etc)? github.repos.getcontent doesn't seem (or might sending wrong path file).
it seems missed this:
alternative response formats
pass appropriate media type fetch diff , patch formats.
from github api documentation.
info regarding format: media:
application/vnd.github.version.patch
Comments
Post a Comment