Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve news fragment file name parsing #2

Merged
merged 1 commit into from
Jan 7, 2020
Merged

Conversation

tjanez
Copy link
Member

@tjanez tjanez commented Jan 7, 2020

The new version uses category as the reference point to later infer the issue number and counter value.
As a consequence, it will return (None, None, None) if the base name doesn't contain a valid category.

The new parser allows using file names like 123.feature.1.ext which are convenient when one wants to use an appropriate extension (e.g. rst, md) to enable syntax highlighting.

Closes #1.

The new version uses category as the reference point to later infer the
issue number and counter value.
As a consequence, it will return (None, None, None) if the base name
doesn't contain a valid category.

The new parser allows using file names like '123.feature.1.ext' which
are convenient when one wants to use an appropriate extension (e.g. rst,
md) to enable syntax highlighting.
@tjanez tjanez merged commit 3623bd4 into oasis-master Jan 7, 2020
@tjanez tjanez deleted the improve-parsing branch January 7, 2020 14:47
@tjanez
Copy link
Member Author

tjanez commented Jan 7, 2020

Also submitted upstream as twisted#173.

tjanez added a commit to oasisprotocol/oasis-core that referenced this pull request Jan 7, 2020
Document the (optional) .<COUNTER> part which allows one to include
multiple Change Log fragments for a single issue or pull request.

This towncrier feature was added in
oasisprotocol/towncrier#2.
tjanez added a commit to oasisprotocol/oasis-core that referenced this pull request Jan 7, 2020
Document the (optional) .<COUNTER> part which allows one to include
multiple Change Log fragments for a single issue or pull request.

This towncrier feature was added in
oasisprotocol/towncrier#2.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support multiple Change log entries for a single issue/pull request number
1 participant