-
-
Notifications
You must be signed in to change notification settings - Fork 6k
Open
Labels
type/proposalThe new feature has not been accepted yet but needs to be discussed first.The new feature has not been accepted yet but needs to be discussed first.
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
.
meoso, tastytea, DjSni, locnide, Ouack23 and 12 more
Metadata
Metadata
Assignees
Labels
type/proposalThe new feature has not been accepted yet but needs to be discussed first.The new feature has not been accepted yet but needs to be discussed first.