You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[tool.towncrier.fragment.security]
name = "Security"
[tool.towncrier.fragment.removed]
name = "Removed"
[tool.towncrier.fragment.deprecated]
name = "Deprecated"
[tool.towncrier.fragment.added]
name = "Added"
[tool.towncrier.fragment.changed]
name = "Changed"
[tool.towncrier.fragment.fixed]
name = "Fixed"
In hindsight, it's unfortunate we've switched away from using a list for that but it is what it is.
I can think of two way to solve this:
add an order key to the fragments:
[tool.towncrier.fragment.security]
name = "Security"order = 1
[tool.towncrier.fragment.removed]
name = "Removed"order = 2
The new way of defining custom fragments uses a dictionary that is unfortunately sorted alphabetically by tomli.
For example this is from my Markdown tutorial in #436:
The fragment types are defined as:
In hindsight, it's unfortunate we've switched away from using a list for that but it is what it is.
I can think of two way to solve this:
order
key to the fragments:I think I prefer option 2, because you don't have to re-number all entries if you change the order.
The question is what would happen if a catefory is missing – I would suggest an error.
The text was updated successfully, but these errors were encountered: