Skip to content

Offer a download link to specific release file #3712

Open
@ahtcx

Description

@ahtcx

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/proposalThe new feature has not been accepted yet but needs to be discussed first.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions