Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

please add CalVer (Calendar Versioning) support #1383

Closed
KonradHoeffner opened this issue Oct 21, 2024 · 2 comments
Closed

please add CalVer (Calendar Versioning) support #1383

KonradHoeffner opened this issue Oct 21, 2024 · 2 comments

Comments

@KonradHoeffner
Copy link
Contributor

KonradHoeffner commented Oct 21, 2024

In addition to the default tag-resolver "method": "semver", it would be very helpful to also have "calver" like this:

    "tag_resolver": {
      "method": "calver",
    }

I have many repositories with Calendar Versioning and building a functioning configuration for that is cumbersome and error prone.
Right now I am using the following:

  "tag_resolver": {
                "method": "sort",
                "filter": {
                  "pattern": "[2-9][0-9]\\.[0-9][0-9]"
                }
              }

The above has worked for a while but now it rejects correct tags, like "23.08" and "24.04", and on the contrary it picks up incorrect tags, like "23.10.21".
To reduce all this effort, a standardized "calver" would be really appreciated.

@mikepenz
Copy link
Owner

calver is practically supported by the sort version. as YYYY.MM.DD will always correctly sort.
The same applies for YY.MM.

@mikepenz
Copy link
Owner

mikepenz commented Nov 1, 2024

Closing as not planned. calverdoes sort properly using the sort based ordering logic in the action.

   tag_resolver: {
        method: 'sort'
    },

@mikepenz mikepenz closed this as completed Nov 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants