Skip to content

Make appending a dot after prerelease phases optional. #7

Description

@AshleighAdams

Instead of forcing a tag structure upon consumers---the reason for this project's creation to begin with---Verlite should be agnostic, and be configurable, but provide sane defaults. This flexibility is intended to allow the adoption of Verlite without necessitating a change to the structure of existing versions.

For this reason, I believe the following options should be added to VersionCalculationOptions:

public enum PhaseSeperatorRule
{
	Alphanumeric = default,
	Numeric = 1,
}
public class VersionCalculationOptions
{
	// ...
	public PhaseSeperatorRule PhaseSeperationRule { get; set; } = default;
	public string PhaseSeperator { get; set; } = ".";
}

This would then allow CD prebuilds to go out structured as 1.0.0-alpha1 instead of 1.0.0-alpha.1 (taking care to ensure 1.0.0-rc.2.1 on tagged prereleases is retained with the Numeric option).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestproposalA proposed change without resolve

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions