changelogen
changelogen copied to clipboard
Omit HEAD tag when getting last tag
Describe the feature
https://github.com/unjs/changelogen/blob/1dc8fb33804a153937e9226973427e83916165be/src/git.ts#L32
When the HEAD is tagged, running changelogen without specifying with --from will generate changelog from head to head, which seems to be meaningless.
Maybe omit the head tag is good:
return execCommand("git describe --tags --abbrev=0 HEAD^", cwd)
Additional information
- [x] Would you be willing to help implement this feature?