changelogen icon indicating copy to clipboard operation
changelogen copied to clipboard

Omit HEAD tag when getting last tag

Open uchouT opened this issue 4 months ago • 0 comments

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?

uchouT avatar Sep 11 '25 19:09 uchouT