Giter Club home page Giter Club logo

Comments (7)

bvieira avatar bvieira commented on June 18, 2024

Hi,

sv4git works with annotated tags, it seems that you stopped to use annotated tags and started to use lightweight instead. Is there any reason for that?

$ git for-each-ref refs/tags  
a47ef71c68fbdcc3a85bb1d42518c3e81cc7f1e7 tag	refs/tags/v1.0.0-beta
bff00c1342bd1122c6687a17090abc45ea8373c6 tag	refs/tags/v1.1.0-beta
84110f85855352dcbf9d10fe4d61689bbf5165c7 tag	refs/tags/v1.2.0
d25cf252fc7a0ec72719d798575fe1b46dceedcf tag	refs/tags/v1.3.0
731595726eeb7f184cf36c40cd822f17d89b6e5b commit	refs/tags/v1.4.2
0ec75357e695e7e19691c1397eb7d02034ef7c23 commit	refs/tags/v1.5.0
61c1e9adc6e37e92a974f32a6f156067427509b7 commit	refs/tags/v1.5.1

The taggerdate is used to sort tags from repo, and lightweight tags don't have this date

$ git tag -l --format "%(taggerdate:iso8601) %(refname:short)"
2021-03-24 09:28:09 +0100 v1.0.0-beta
2021-03-25 14:16:36 +0100 v1.1.0-beta
2021-03-26 18:05:52 +0100 v1.2.0
2021-03-27 18:02:57 +0100 v1.3.0
 v1.4.2
 v1.5.0
 v1.5.1

It's not only git sv cgl that it's not working, current-version, next-version and tag are broken as well, because git describe get the last annotated tag (v1.3.0).

$ git sv cv
1.3.0
$ git sv nv
1.4.0

I think that I can change it to support both tags (annotated and lightweight), but when using lightweight tags, the date from your tag is the commit date, so your release date will be the same as the last commit and not the date the tag was created. Eg.:

last commit date tag date tag type tag release date
2021-02-25 21:37:33 -0300 2021-04-10 15:58:45 -0300 lightweight v1.0.0 2021-02-25
2021-02-25 21:37:33 -0300 2021-04-10 15:58:45 -0300 annotated v1.0.0 2021-04-10

from sv4git.

syrm avatar syrm commented on June 18, 2024

Thank for theses informations.
I think support both and take date of commit for lightweight tag seems good.

from sv4git.

bvieira avatar bvieira commented on June 18, 2024

I forgot about the empty releases, currently sv4git only shows feat, fix and breaking changes on changelog, if your tag don't have any, it will be blank :(

In the future I would like to add a misc section to changelog, but I don't know when..

$ git sv cl -t v1.5.1                                          
{"date":"2021-04-10","hash":"61c1e9a","message":{"type":"chore","description":"v1.5.1 (#27)"}}
{"date":"2021-04-10","hash":"3216a77","message":{"type":"chore","description":"Add build tools (#26)"}}

from sv4git.

syrm avatar syrm commented on June 18, 2024

Indeed i noticed this :-)

Maybe in configuration allows the user to add the headers he wants for each type, if he doesn't add the type in headers, dont show it in changelog.

from sv4git.

bvieira avatar bvieira commented on June 18, 2024

Indeed i noticed this :-)

Maybe in configuration allows the user to add the headers he wants for each type, if he doesn't add the type in headers, dont show it in changelog.

yeah, and some way to aggregate more than one type as well.. but I need to make headers flexible on template first..

from sv4git.

bvieira avatar bvieira commented on June 18, 2024

support for lightweight tags is available in version 2.2.0

from sv4git.

syrm avatar syrm commented on June 18, 2024

Thanks ! As always you're awesome :-)

from sv4git.

Related Issues (19)

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.