Skip to content

Omit HEAD tag when getting last tagΒ #292

@uchouT

Description

@uchouT

Describe the feature

return execCommand("git describe --tags --abbrev=0", cwd)

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

  • Would you be willing to help implement this feature?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions