-
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.
Users can now write the content in the "create" method. (#275)
* Users can now write the content in the "create" method. * Add missing news fragment * Add missing test for interactive content * Use the click.edit method in order to write content * Add context and exit code to create.py abort * Add missing unit tests to the create method. * Update src/towncrier/newsfragments/275.feature Co-authored-by: Kyle Altendorf <[email protected]> * Fix mock import error * Fix code after review * Apply suggestions from code review Co-authored-by: Kyle Altendorf <[email protected]> * refactor _get_content method Co-authored-by: Kyle Altendorf <[email protected]>
- Loading branch information
Showing
4 changed files
with
70 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
The new ``--edit`` option of the ``create`` subcommand launches an editor for entering the contents of the newsfragment. |
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 |
---|---|---|
|
@@ -28,6 +28,7 @@ deps = | |
Twisted | ||
coverage | ||
incremental | ||
mock | ||
|
||
commands = | ||
python -V | ||
|