Skip to content

[Feature/Idea]: Add maximum package versions functionality #3

@russellbanks

Description

@russellbanks

What would you like to see changed/added?

This feature would be like delete-previous-version, except it would delete the oldest version once the amount of versions within a package have reached a maximum number.

For example, you have package-x, with maximum versions set to 5:

1.0.0
1.1.0
1.2.0
1.3.0
1.4.0

When the next version, say 1.5.0, is released, winget-releaser would then delete 1.0.0 in that same pull request.

This would be most useful in packages that push a lot of updates but want to keep their version history clean, as it is uncommon for users to need versions that old.

This links to microsoft/winget-pkgs#66854 (reply in thread):

Quick answer; Feel free to add old versions (major and/or up to the 10 latest versions)

Metadata

Metadata

Assignees

No one assigned

    Labels

    featNew feature request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions