Towncried currently adds an index if a snippet already exists, e.g. issue-1234.feat.md is available, so issue-1234.feat.1.md is created.
We have a graphical tool for changelog snippet creation and wanted to directly access the indexed snippets - so an overwrite is possible.
With this change, a new option "--index" is added.
e.g.
towncrier create --dir .../changelogs/preliminary --config .../config/changelogs/towncrier.toml --section BLA --content "test3<br/>
another snippet" --index 8 ISSUE-1000.feat.md
Created news fragment at .../changelogs/preliminary/BLA/ISSUE-1000.feat.8.md
If index == 0, the filename without index is accessed.
If inxed > 0, the index is added to the filename.
If option "index" is not passed, the tool behaves as before - the next index is chosen.
Towncried currently adds an index if a snippet already exists, e.g.
issue-1234.feat.mdis available, soissue-1234.feat.1.mdis created.We have a graphical tool for changelog snippet creation and wanted to directly access the indexed snippets - so an overwrite is possible.
With this change, a new option "--index" is added.
e.g.
If index == 0, the filename without index is accessed.
If inxed > 0, the index is added to the filename.
If option "index" is not passed, the tool behaves as before - the next index is chosen.