-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve news fragment file name parsing
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.
- Loading branch information
Showing
3 changed files
with
53 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Improve news fragment file name parsing to allow 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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters