Skip to content

Commit

Permalink
Add example to tutorial of incrementing via towncrier create
Browse files Browse the repository at this point in the history
  • Loading branch information
SmileyChris committed Feb 9, 2023
1 parent 37a7363 commit 6f86444
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/tutorial.rst
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ You can create those fragments either by hand, or using the ``towncrier create``
Let's create some example news fragments to demonstrate::

$ echo 'Fixed a thing!' > src/myproject/newsfragments/1234.bugfix
$ towncrier create --content 'Fix another thing!' 1234.bugfix # since the file existed, this will create a 1234.bugfix.1
$ towncrier create --content 'Can also be ``rst`` as well!' 3456.doc.rst
# You can associate multiple ticket numbers with a news fragment by giving them the same contents.
$ towncrier create --content 'Can also be ``rst`` as well!' 7890.doc.rst
Expand Down Expand Up @@ -124,6 +125,7 @@ You should get an output similar to this::
--------

- Fixed a thing! (#1234)
- Fixed another thing! (#1234)
- Orphan fragments have no ticket ID.


Expand Down

0 comments on commit 6f86444

Please sign in to comment.