Optum / semver-cli

Apache License 2.0
8 stars 1 forks source link

feature: Support prefix to git tag #27

Closed shivajivarma closed 1 year ago

shivajivarma commented 1 year ago

Feature Request

Add support for prefix to version tag like --prefix-tag v -> git tag v1.0.0

This would help in CI automation on version tags.

Example GitHub action for releases.

on:
  push:
    # Sequence of patterns matched against refs/tags
    tags:
      - 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
justinmchase commented 1 year ago

Thanks for the reports, I just saw these and will take a look at fixing them soon.

shivajivarma commented 1 year ago

I just realized, this tool does not create git commit with tag, on version bump up. It only updates version in files. This requirement is on top of git commit support. So, closing it.

justinmchase commented 1 year ago

Yes I've been using the release-drafter action to create Draft Releases with new versions. This tool simply sets the versions to whatever you want.

justinmchase commented 1 year ago

But technically this is a legit feature request, semantic versions support being prefixed with v specifically. I think having that in the settings file as an option would make sense.