orphan fragments that contain a number in the filename are linked to issues.
mdellweg opened this issue · comments
e.g. calling the fragment CHANGES/+compat.somelib_1.12.feature
will link the supposed orphan snippet to the issue #12
.
Thanks for the report
It looks like we have some missing automated tests.
I think that the fix can start by writing an automated test (or updating the current one) for this filename and see the test failing.
I think that the issue is somewhere here:
towncrier/src/towncrier/_builder.py
Lines 107 to 119 in a794718
or here
towncrier/src/towncrier/_builder.py
Lines 27 to 61 in a794718
I would be happy to review a fix for this :)
I started adding to a test: #564
Do you want to see it red before fixing it?
Also your two code snippets are the same. Did you mention to point me to another area too?
Awesome. I have enabled the tests on that PR.
I have updated the code link