Giter VIP home page Giter VIP logo

Comments (11)

stevemao avatar stevemao commented on June 1, 2024 1

The PR has not been merged yet

from conventional-changelog-core.

SteveVanOpstal avatar SteveVanOpstal commented on June 1, 2024

I already checked if git log --decorate --no-color contains the correct tags and it does. So the issue is not in git-semver-tags.

from conventional-changelog-core.

stevemao avatar stevemao commented on June 1, 2024

Can you provide an easy way to replicate your problem?

from conventional-changelog-core.

SteveVanOpstal avatar SteveVanOpstal commented on June 1, 2024

I forked standard-version and created two tags without the v-prefix: https://github.com/SteveVanOpstal/standard-version/releases

When I run node index.js standard-version creates this compare link:
conventional-changelog/standard-version@2.2.3...v2.2.2

from conventional-changelog-core.

stevemao avatar stevemao commented on June 1, 2024

I see what you mean now... context.currentTag by default is 'v' + context.version. You could always change the defaults.

from conventional-changelog-core.

stevemao avatar stevemao commented on June 1, 2024

The changelog is generated before you tag it. That means it doesn't know what you're gonna tag it. You could tag it as anything basically. It's not recommended to do that.
If you really want to do that and doesn't want to change context.currentTag manually, you could generate the changelog after you tag it.

from conventional-changelog-core.

SteveVanOpstal avatar SteveVanOpstal commented on June 1, 2024

The main reason why I have non-v-prefixed tags is because I have set up my project similarly as the angular project. There was also a recent addition to semver that made me lean more towards non-v-prefixed tags:
https://github.com/mojombo/semver/blob/master/semver.md#is-v123-a-semantic-version

However, for my convenience and also because I just discovered the pretty awesome standard-version repository, I can drop my autistic ideas and go for v-prefixed tags.

from conventional-changelog-core.

stevemao avatar stevemao commented on June 1, 2024

All defaults are meant to be configurable. But using them is highly recommended. Maybe the default v should be depending on the previous tag?

from conventional-changelog-core.

SteveVanOpstal avatar SteveVanOpstal commented on June 1, 2024

Seems like a good solution. The only situation that is not covered is when a repository moves from one prefix type to the another, but this is something that probably won't happen often and it is very easy to fix manually, and only needs to be fixed once. Are there any other situations/prefixes we should consider though?

from conventional-changelog-core.

stevemao avatar stevemao commented on June 1, 2024

Are there any other situations/prefixes we should consider though?

I can't think of any.

from conventional-changelog-core.

SteveVanOpstal avatar SteveVanOpstal commented on June 1, 2024

Me neither

from conventional-changelog-core.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.