Added a utility to format changelogs from the auto-generated GitHub release notes #9408
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.
New Utility to Format Changelogs from Auto-Generated GitHub Release Notes
This PR introduces a utility script and updates the docs Makefile to streamline the process of generating formatted changelogs from GitHub's auto-generated release notes.
Changes Overview
Added
changelog_formatter.py
script in thedocs/
directory:Changelog.rst
.Updated
docs/Makefile
:changelog
target that provides usage instructions and runs thechangelog_formatter.py
script.changelog
target in thehelp
section.Updated
requirements/pkgutils.txt
:pyperclip==1.9.0
to handle clipboard operations within the script.Detailed Description
1.
changelog_formatter.py
ScriptPurpose: Automates the formatting of changelog entries from GitHub's release notes.
Features:
Usage:
Example Output:
2.
docs/Makefile
UpdatesAdded
changelog
Target:changelog_formatter.py
script with the--clipboard
option.Updated
help
Section:changelog
target for easier discovery.3.
requirements/pkgutils.txt
Updatepyperclip==1.9.0
is now required for clipboard operations used in the script.Usage Instructions
Generate Release Notes:
Process the Changelog:
Update
Changelog.rst
:Changelog.rst
file within the appropriate version section.x.y.z
with the new version number.<YYYY-MM-DD>
with the release date.<FULL NAME>
with your full name.Benefits
Additional Notes
colorama
to highlight sections when outputting to the terminal for better readability.Checklist
changelog_formatter.py
script.docs/Makefile
with a newchangelog
target and help information.requirements/pkgutils.txt
to includepyperclip
.Input (copied to clipboard):
## What's Changed * Fix: Treat dbm.error as a corrupted schedule file by @stumpylog in https://github.com/celery/celery/pull/9331 * Pin pre-commit to latest version 4.0.1 by @pyup-bot in https://github.com/celery/celery/pull/9343 * [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in https://github.com/celery/celery/pull/9369 * Bump mypy from 1.12.1 to 1.13.0 by @dependabot in https://github.com/celery/celery/pull/9373 * Pass timeout and confirm_timeout to producer.publish() by @thedrow in https://github.com/celery/celery/pull/9374 * [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in https://github.com/celery/celery/pull/9379 * Bump Kombu to v5.5.0rc2 by @Nusnus in https://github.com/celery/celery/pull/9382 * Bump pytest-cov from 5.0.0 to 6.0.0 by @dependabot in https://github.com/celery/celery/pull/9388 * default strict to False for pydantic tasks by @mathiasertl in https://github.com/celery/celery/pull/9393 ## New Contributors * @0x2b3bfa0 made their first contribution in https://github.com/celery/celery/pull/9361 * @hmnfalahi made their first contribution in https://github.com/celery/celery/pull/9362 * @Niennienzz made their first contribution in https://github.com/celery/celery/pull/9398 * @SlowMo24 made their first contribution in https://github.com/celery/celery/pull/9405 **Full Changelog**: https://github.com/celery/celery/compare/v5.5.0rc1...v5.5.0rc2
Output:
