Skip to content

Port the Towncrier configuration and template from pip-tools - #99

Merged
webknjaz merged 4 commits into
aio-libs:masterfrom
rodrigobnogueira:port-pip-tools-towncrier
Oct 31, 2026
Merged

webknjaz merged 4 commits into
aio-libs:masterfrom
rodrigobnogueira:port-pip-tools-towncrier

Conversation

@rodrigobnogueira

Copy link
Copy Markdown
Member

What do these changes do?

Ports pip-tools' Towncrier setup, as asked in #82. towncrier.toml now matches pip-tools' apart from how the version is read and the docs/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, @user and plain commit hashes: issues through get-releasenote's fix_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-only highlights and afterword admonitions 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), and CHANGELOG.md shows 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-changelog env are left for follow-up PRs.

Checklist

  • I think the code is well written
  • Unit tests for the changes exist
  • Documentation reflects the changes
  • Add a new news fragment into the docs/changelog.d/ folder

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.
@agentscanapp

agentscanapp Bot commented Oct 11, 2026

Copy link
Copy Markdown

Automation signals

Activity patterns show signs of automation.

View full analysis →

Report this account →

Evidence
  • Very high PR volume (daily): 31 PRs within a single 24-hour window
  • High PR volume (weekly): 50 PRs within a single 7-day window

Last 5 PRs:

This is an automated analysis by AgentScan

@codecov

codecov Bot commented Oct 11, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.37%. Comparing base (29bcb0f) to head (c98dd5d).

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              
Flag Coverage Δ
Linux 88.55% <ø> (+0.06%) ⬆️
Windows 81.96% <ø> (ø)
macOS 85.50% <ø> (+0.03%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.
see 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@greptile-apps

greptile-apps Bot commented Oct 11, 2026 •

Copy link
Copy Markdown

RetriggerConfidence Score: 5/5

[Medium impact] Safe to merge within the reviewed scope. No blocking findings remain.

T-Rex evidence

Evidence from the check

  • The executed Python harness creates disposable base/head checkouts and verifies actual Towncrier drafts without modifying tracked files.

Command output from the check

  • Towncrier was executed against base 29bcb0f with pristine inputs and identical category fixtures, establishing the comparison baseline.

Command output from the check

  • Towncrier was executed against head c98dd5d with configured discovery, explicit versions, the actual PR fragment, and category fixtures, showing no tested discovery or omission regression.

Command output from the check

  • The validation harness exited successfully and git diff --exit-code returned zero, confirming all assertions passed without tracked-file edits.

Evidence from the check

  • The executed Python harness renders disposable finalized changelogs and runs exact base and head workflow behavior with content assertions, making the validation reproducible.

Command output from the check

  • Ran the base workflow against finalized changelogs with dated and undated prior releases, showing correct body isolation and unchanged inline MyST references.

Command output from the check

  • Ran the cached parser and exact head conversion against both finalized changelog variants, showing successful reference replacement, preserved legacy links, and no earlier-release leakage.

Command output from the check

  • Checked staged and unstaged diffs after disposable-fixture execution, confirming that no tracked edits remain.

View artifacts

Reviews (1) · Last reviewed commit: "Add a change note" · Reviewed by Greptile

@codspeed

codspeed Bot commented Oct 11, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

⚠️ 41 benchmarks spent significant time in system calls

System calls cannot be consistently instrumented, so they are not included in the measure, which understates the real cost. Please switch to the Walltime instrument to accurately measure system calls.

Measurement and system calls

✅ 41 untouched benchmarks


Comparing rodrigobnogueira:port-pip-tools-towncrier (c98dd5d) with master (29bcb0f)

Open in CodSpeed

@tarasko

tarasko commented Oct 14, 2026

Copy link
Copy Markdown
Contributor

Thank you @rodrigobnogueira!
Looks good to me. I'm happy to merge it if there is no comments/objections from @webknjaz

@webknjaz
webknjaz self-requested a review October 15, 2026 09:18

@webknjaz webknjaz left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice start! Next up — Sphinx integration via sphinxcontrib-towncrier.

@webknjaz
webknjaz merged commit e34a14b into aio-libs:master Oct 31, 2026
42 of 43 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants