changelogen icon indicating copy to clipboard operation
changelogen copied to clipboard

How to add package name to tag?

Open gzf6 opened this issue 1 year ago • 3 comments

The current tag only has the version number. I hope the tag contains the package name.

gzf6 avatar Jan 18 '24 06:01 gzf6

I found that the tag template can be modified in changelog.config, but I don’t know what the placeholder for package name is? Does anyone know?

Snipaste_2024-01-19_14-11-56

gzf6 avatar Jan 19 '24 06:01 gzf6

Hello @gzf6 , Seems like the only available template variable is {newVersion}

See here: https://github.com/unjs/changelogen/blob/main/src/commands/default.ts#L121

NamesMT avatar Jan 22 '24 09:01 NamesMT

Hello @gzf6 , Seems like the only available template variable is {newVersion}

See here: https://github.com/unjs/changelogen/blob/main/src/commands/default.ts#L121

Thanks, it seems I can only use fixed names in templates now

gzf6 avatar Jan 22 '24 09:01 gzf6