Open
Description
How about one-upping GitHub and offering a direct download link to any file from any release. The best way I can think of would be with the following URL scheme, I don't they could interfere with any current ones.
URL | Download |
---|---|
/{user}/{repo}/releases/download/latest/{name} |
name from latest stable release |
/{user}/{repo}/releases/download/latest:stable/{name} |
name from latest stable release |
/{user}/{repo}/releases/download/latest:prerelease/{name} |
name from latest prerelease |
/{user}/{repo}/releases/download/tag:{tag}/{name} |
name from specific release tag |
The URLs should 302 to the attachement URL, if no file or release exists it should 404. If you like the idea but have bigger priorities I could look into implementing it myself, though it will take some time since I've never contributed to a big project, nor used Go.
This is really useful to provide a static URL to the latest release similar to wordpress.org/latest.zip
that can be used by scripts. Instead it would look more like /wordpress/wordpress/releases/download/latest/wordpress.zip
.