Skip to content

Fix latest tag in GitHub releases #73

@emmyoop

Description

@emmyoop

Right now, the "Latest" release is simply the chronologically latest release that is non-draft & non-prerelease. This means when we release a patch to an older version, it gets marked as lates in GitHub now.

Screen Shot 2023-03-03 at 9 46 11 AM

Example
first release 1.5.0 -> marked correctly as latest
now release 1.4.3 -> this is now incorrectly marked as latest

We need to determine if this is the true latest and mark it as such when releasing.

For now the workaround is to go in and update the releases appropriately in the UI when releasing a patch to an older version.

Details

You can list and filter releases with the gh cli: https://cli.github.com/manual/gh_release_list
If the current release is the same minor version or less with a higher patch, it should be marked latest.

Current Latest in GH Version Being Released Mark Version being released as latest
1.5.2 1.5.3 yes
1.5.2 1.4.8 no
1.5.2 1.6.0 yes
1.5.2 1.6.0b1 no

Never mark pre-releases or draft releases as latest

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions