Don't render the issue reference when issue_format is not defined.
thet opened this issue · comments
I'd like to disable the issue reference for issue_template
at all.
For one project we do not create issues which could be referenced.
Currently I'm doing a issue_format: ""
in the pyproject.toml
which generates empty parenthesis in the news entry like - NEWS TEXT. ()
. This is currently fine, but disabling would be even better.
Hi Johannes
Thanks for the report. I think that it would be nice to have this functionality.
That is, if issue_format
is empty, don't include the parenthesis.
I did a quick check for the code, and it looks like this is not an easy fix.
I was hopping to have all this generated via Jinja2, but it looks like there is custom python code.
towncrier/src/towncrier/_builder.py
Line 228 in 806bec1
and
towncrier/src/towncrier/_builder.py
Line 239 in 806bec1