Repository navigation
Move release notes extraction to an invoke task - #166
Merged
Merged
Conversation
The changelog to Markdown conversion moves from an inline Python heredoc in release.yml to an `invoke release-notes` task in tasks.py, next to the other changelog tooling. It can now be run locally to preview the notes. The conversion now fails on lines it cannot convert (paragraphs, text outside a group) and on sections without entries, instead of silently dropping them. Nested bullets are kept. The notes are extracted before building and publishing, so a missing or broken changelog section stops the release before it reaches PyPI. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #165, targeting its branch.
Changes
invoke release-notes. The changelog → Markdown conversion moves out of the heredoc inrelease.ymlintotasks.py, next toprepare_changelogand the bump2version setup that already own the changelog format. The workflow step is now one line. Maintainers can preview the notes locally before tagging:*bullets and indented continuations and silently discarded anything else (e.g. a plain paragraph). It now fails with the offending line number. Nested bullets keep their indentation instead of being glued to the parent item. A section with no entries at all also fails, which catches a forgotten changelog. Drop that check if a release without entries should be allowed.Verification
invoke release-notes --tag v2.1.0output is identical to the published v2.1.0 release body (minus GitHub's generated "Full Changelog" line).CHANGELOG.rstconvert without errors.--tag v9.9.9) exits with status 1. Paragraph text, text outside a group, and empty sections raise errors as intended.🤖 Generated with Claude Code