jcabi-github icon indicating copy to clipboard operation
jcabi-github copied to clipboard

How can I download a zip file from a specific commit?

Open rainywang opened this issue 6 years ago • 3 comments

After I get a RepoCommit object by RepoCommit.Smart smt = new RepoCommit.Smart(commit); I want to get the Zip file of the commit via smt.sha() and download the file from GitHub.

Is it possible to do this?

rainywang avatar Feb 28 '19 03:02 rainywang

@amihaiemil/z please, pay attention to this issue

0crat avatar Feb 28 '19 03:02 0crat

@rainywang/z this project will fix the problem faster if you donate a few dollars to it; just click here and pay via Stripe, it's very fast, convenient and appreciated; thanks a lot!

0crat avatar Feb 28 '19 03:02 0crat

@rainywang I'm not sure it's implemented in the library, but if you can get the sha code, then you might be able to make the HTTP call yourself, by using the underlying HTTP request (you can get it from the Github instance which has the method entry())

amihaiemil avatar Mar 09 '19 16:03 amihaiemil