Repository navigation
👷 ci(release): docstrfmt the changelog before committing it - #551
Merged
gaborbernat merged 2 commits intoSep 18, 2026
Merged
Conversation
towncrier's header overline and wrapping don't match docstrfmt, so every release commit left docs/changelog.rst in a state the next PR's pre-commit.ci run would reformat, carrying an unrelated diff into whichever PR merged first (e.g. tox-dev#549, tox-dev#550). Run the docstrfmt hook on the generated changelog before committing the release. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
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.
Each release commit left
docs/changelog.rstin a shape thatdocstrfmt -l 120rewrites. Towncrier draws the header overline one character short and breaks lines at other columns. Nothing randocstrfmtbefore that commit landed onmain, so pre-commit.ci pushed the reformat into whichever PR it touched next. #549 and #550 both carry it. 🧹prepare-release.yamlruns thedocstrfmtpre-commit hook on the generated changelog betweentowncrier buildand the release commit, so the file lands in its final format.pre-commitexits non-zero when a hook rewrites a file. The step ignores that exit code with|| true.The first release through this workflow, 4.11.10, needed no follow-up reformat. 👷