Skip to content

New option 'index' #714

@tirolerstefan

Description

@tirolerstefan

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions