diohub icon indicating copy to clipboard operation
diohub copied to clipboard

ability to download repo

Open Hedronmx opened this issue 2 years ago • 2 comments

I would love to be able to download a repo. Btw this is easily the best GitHub app!

Hedronmx avatar Jan 05 '22 10:01 Hedronmx

The url format used by download ZIP option used by the official website is https://github.com/{user}/{repo}/archive/refs/heads/{branch}.zip This could be used here

Example: https://github.com/NamanShergill/diohub/archive/refs/heads/development.zip for the development branch of NamanShergill/diohub

Notes:

  • Omitting the refs/heads/ also works. e.g. https://github.com/NamanShergill/diohub/archive/development.zip
  • You can replace the branch with a commit hash too e.g. https://github.com/NamanShergill/diohub/archive/69b13ab65f5ffef13e448d4f3241ae997a3bfdc9.zip
  • You can replace the branch with a tag name too e.g. https://github.com/NamanShergill/diohub/archive/0.3.2-beta.zip. That link would be same as https://github.com/NamanShergill/diohub/archive/refs/tags/0.3.2-beta.zip where refs/tags is included
  • Replacing the .zip with .tar.gz also works and downloads a gzipped tarball instead of a zip file

@NamanShergill Hope this helps

wasi-master avatar Jan 09 '22 12:01 wasi-master

I will be adding this feature in the next update along with repository releases. I'm currently working on project boards and comment reactions for the meantime.

However I think I didn't list it on the roadmap. Will do so in a while.

NamanShergill avatar Jan 09 '22 15:01 NamanShergill