Skip to content

Support configurable Git tag format #190

@goulvenclech

Description

@goulvenclech

Introduce two configuration options, tag-format and short-tag-format, to let users customise the format of Git tags generated by Sampo. Both options must support interpolation of {package-name} and {version}.

Default configuration:

[git]
tag-format = "{package-name}-v{version}"
short-tag-format = "v{version}"

Open question: handling tag collisions
What is the best approach if tag-format does not include {package-name} and multiple packages might generate the exact same tag for a given version? Should Sampo prevent this at config-time, warn, or leave it to the user?

Metadata

Metadata

Assignees

No one assigned

    Labels

    RFCProposed feature or change - open for feedbackcrt:sampoChanges in Sampo CLI crate.crt:sampo-coreChanges in Sampo core logic or internal utils.crt:sampo-github-actionChanges in Sampo's Github action crate.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions