Skip to content

Enable fetching the largest version instead of just the latest version #39

@decoded4620

Description

@decoded4620

Sometimes - we have to go back to a previous major version and patch it. This becomes the latest 'tag'. When executed in CI/CD this causes an issue since the calculated new version will likely exist in tags - making it incorrect and likely to fail the tagging process.

.e.g tags in date order are:

v6.8.0
v3.2.8  # historical version with a patch fix gets inserted at the end

then

git commit -m "[minor] stuff"

will attempt to tag v2.9.0 - which already exists in our tags.

Suggestion:

git-semver -sort-on version -target minor

properly calculates the tag

v6.9.0

This enables recent patches to continue as planned without affecting the ongoing tagging process. Since the tagging code is encapsulted in this module - there is no reasonable amount of complexity we can add to get around it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions