-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Interactive create when no filename is passed * Configurable eof newline * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Add changes * More tests for file extensions * mypy fix * Test interactive create for orphan news fragments * Interactive create when no filename is passed * Configurable eof newline * Add changes * More tests for file extensions * mypy fix * Test interactive create for orphan news fragments * Document two other new features in the newsfragment * Test improvements * Fix test to use default extension * remove obscure --eof-newline/--no-eof-newline cli option. Have a config option is enough. --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Glyph <glyph@twistedmatrix.com> Co-authored-by: Adi Roiban <adi.roiban@chevah.com> Co-authored-by: Adi Roiban <adiroiban@gmail.com>
- Loading branch information
1 parent
f6083bb
commit dd41869
Showing
6 changed files
with
304 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
If no filename is given when doing ``towncrier`` create, interactively ask for the issue number and fragment type (and then launch an interactive editor for the fragment content). | ||
|
||
Now by default, when creating a fragment it will be appended with the ``filename`` option's extension (unless an extension is explicitly provided). For example, ``towncrier create 123.feature`` will create ``news/123.feature.rst``. This can be changed in configuration file by setting `add_extension = false`. | ||
|
||
A new line is now added by default to the end of the fragment contents. This can be reverted in the configuration file by setting `add_newline = false`. |
Oops, something went wrong.