scriv icon indicating copy to clipboard operation
scriv copied to clipboard

`scriv collect` should check category names

Open SpecLad opened this issue 2 years ago • 2 comments

Currently it seems that scriv doesn't care if the headers in the changelog fragments match the configured category names. So if I make a typo and write e.g. "### Secruity", scriv will just assume that it's a category of its own.

It would be useful if scriv were to error out when encountering such fragments.

SpecLad avatar Oct 13 '23 13:10 SpecLad

Would it be helpful for such a check to be a pre-commit hook, so that developers can catch this at PR submission, rather than when they're trying to cut a release?

kurtmckee avatar Oct 25 '23 21:10 kurtmckee

I think it should be part of scriv collect, but this subcommand could have a --dry-run/--check option, which would then be usable as a pre-commit hook.

SpecLad avatar Oct 25 '23 22:10 SpecLad