Comments (7)
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.
Thank for theses informations.
I think support both and take date of commit for lightweight tag seems good.
from sv4git.
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.
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.
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.
support for lightweight tags is available in version 2.2.0
from sv4git.
Thanks ! As always you're awesome :-)
from sv4git.
Related Issues (19)
- Allow to release major version tag HOT 2
- git sv vcm seems not working with a rebase HOT 8
- Usage with an empty | null `commit-message.issue.key` HOT 2
- Default config can't be overridden on MacOS HOT 7
- Changelog generation should be able to generate last change untagged HOT 4
- Can't override branches.skip with an empty array HOT 1
- [Question/Bug] Incomplete changelog HOT 9
- Executable installed with go install show "version source" with -v option HOT 7
- Provide Multi Architechure Releases
- Templating for changelog generation HOT 10
- [Feature Request] Allow regex to select part of commit message for conventional parsing HOT 3
- Running commands after install in Ubuntu results in an error. HOT 2
- Request: changelog from a commit/date ? HOT 4
- [Feature Request] Recognise Jira tickets in header HOT 1
- git-sv release-notes fails to find tag in pipeline HOT 5
- Closing parentheses appear in the wrong places HOT 10
- [Feature Request] Support environment variables in template HOT 1
- Publishing pre-releases HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sv4git.