Skip to content

Be able to configure the filename for version in .changes/ folder #776

Description

@johnraz

Is your feature request related to a problem? Please describe.
I want to use versions without prefixes.

It's possible to act on that in multiple places of changie but not to generate the proper file name in the .changes folder after running changie batch, it will always include the v prefix.

e.g:

.changes/
├── header.tpl.md
├── unreleased
└── v1.0.0.md

Describe the solution you'd like
Change the line at

versionFilePath := filepath.Join(b.config.ChangesDir, b.Project, data.Version+"."+b.config.VersionExt)

so that data.Version can be switched to data.VersionNoPrefix based on some configuration.

Describe alternatives you've considered
Not making use of automatic versioning when using changie batch but this is a bit sad.

Let me know if you think it's a meaningful addition and how you would approach it.
Cheers!

Activity

  1. miniscruff commented on May 8, 2025

    @miniscruff
    Owner

    Hmm, it does seem like you are able to change every part of that file name except that. Do you just not like the v prefix or does it affect something?

  2. johnraz commented on May 8, 2025

    @johnraz
    Author

    Nothing major but it does create some kind of confusion between the file name and the content of the changelog where the v prefix can be dropped.

    It’s a nice to have really but doesn’t seem crazy to implement either ☺️

  3. miniscruff commented on May 8, 2025

    @miniscruff
    Owner

    Yea, I may have done a little work in the v2 config structure around this. Just trying to think of the best config option here. I'm torn between a simple bool to enable or disable the prefix or to just support another template value.

  4. johnraz commented on May 8, 2025

    @johnraz
    Author

    I would be happy with either of them but maybe having a full template option would be better in terms of flexibility?
    I’m thinking about a filename template in the same fashion as the change template works

  5. miniscruff commented on May 10, 2025

    @miniscruff
    Owner

    I would be happy with either of them but maybe having a full template option would be better in terms of flexibility?
    I’m thinking about a filename template in the same fashion as the change template works

    I agree I think that style works better

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions