twisted / towncrier

Manage the release notes for your project.

Home Page:https://towncrier.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

def render_issue(issue_format: str | None, issue: str) -> str:

and

def render_fragments(