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

Support multiple tagging schemes: v2, v2.4, v2.4.6 or v2.4.6.8 #117

Open
rudymatela opened this issue Jun 9, 2022 · 0 comments
Open

Support multiple tagging schemes: v2, v2.4, v2.4.6 or v2.4.6.8 #117

rudymatela opened this issue Jun 9, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@rudymatela
Copy link

rudymatela commented Jun 9, 2022

Currently Hoff supports "merge and tag"ging for when versions are simply a "v" followed by an integer:

  • ... v29, v30, v31, v32...

We could perhaps make it so that Hoff supports other tagging schemes, such as SemVer (v1.2.3) or Haskell's PVP (v.1.2.3.4).

For SemVer:

  • "merge and tag" would increment the patch level: v2.4.6 -> v2.4.7;
  • "merge and tag minor" would increment the minor level: v2.4.6 -> v2.5.0;
  • "merge and tag major" would increment the major level: v2.4.6 -> v3.0.0.

For Haskell's PVP:

  • "merge and tag" would increment the patch level: v2.4.6.8 -> v2.4.6.9;
  • "merge and tag minor" would increment the minor level: v2.4.6.8 -> v2.4.7.0;
  • "merge and tag major" would increment the major level: v2.4.6.8 -> v2.5.0.0.
  • "merge and tag principal" would increment the principal "major-major" level: v2.4.6.8 -> v3.0.0.0.

Which versioning scheme is being used could be autodetected from existing tags.

And initial implementation could be just picking up incrementing the patch level by default (the last number) followed by one that implements the extra commands.

(I got the idea for this improvement from a private conversation with @fatho.)

@rudymatela rudymatela added the enhancement New feature or request label Jun 9, 2022
@rudymatela rudymatela changed the title Support multiple tagging schemes Support multiple tagging schemes: v2, v2.4, v2.4.6 or v2.4.6.8 Jun 9, 2022
@tijmendj tijmendj reopened this Aug 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants