Repository navigation
Port the Towncrier configuration and template from pip-tools - #99
Conversation
towncrier.toml now matches pip-tools' except for how the version is read and the docs/changelog.d/ location. The Markdown template renders change note references as MyST roles for a future Sphinx integration, and the .gitignore keeps the fragments folder in Git when it has no fragments.
Adapted from pip-tools' changelog.d/README.md.
GitHub releases don't render the {issue}, {user} and {commit} roles the template now emits, so the release-notes job rewrites them into #N, @user and plain commit hashes.
Automation signalsActivity patterns show signs of automation. Evidence
Last 5 PRs: This is an automated analysis by AgentScan |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #99 +/- ##
==========================================
+ Coverage 91.28% 91.37% +0.09%
==========================================
Files 19 19
Lines 3257 3257
Branches 38 38
==========================================
+ Hits 2973 2976 +3
+ Misses 273 270 -3
Partials 11 11
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
|
Merging this PR will not alter performance
|
|
Thank you @rodrigobnogueira! |
webknjaz
left a comment
There was a problem hiding this comment.
Nice start! Next up — Sphinx integration via sphinxcontrib-towncrier.
What do these changes do?
Ports pip-tools' Towncrier setup, as asked in #82.
towncrier.tomlnow matches pip-tools' apart from how the version is read and thedocs/changelog.d/location, and that folder gets pip-tools' Markdown template, draft partial and.gitignore, plus a guide to writing change notes adapted from its README.The template renders references as MyST roles (
{issue},{user},{commit}) for a future Sphinx integration. GitHub releases don't render those, so the release-notes job now turns them into#N,@userand plain commit hashes: issues through get-releasenote'sfix_issue_regex, the other two in a small step after it. On a simulated 1.2.1 release, get-releasenote 1.4.5's own parser plus that step left no roles in the notes; only the maintainer-onlyhighlightsandafterwordadmonitions still come through as MyST.Are there changes in behavior for the user?
No. Change notes are now written with MyST roles (see
docs/changelog.d/README.md), andCHANGELOG.mdshows them as roles until docs are built from it.Is it a substantial burden for the maintainers to support this?
No.
Related issue number
Part of #82. The chronographer config and a tox
draft-changelogenv are left for follow-up PRs.Checklist
docs/changelog.d/folder