Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Dec 21, 2025

Add bash script to parse CHANGELOG.md files and extract content for a specific version, enabling automated changelog retrieval across packages.

Implementation

  • Script: .github/scripts/extract-changelog.sh
  • Arguments: <package-dir> <version> (e.g., fast-check 4.5.2, ava 2.0.2)
  • Output: Changelog section for specified version, from version header through Features/Fixes sections
  • Termination: Stops at next version header or --- separator

Usage

.github/scripts/extract-changelog.sh fast-check 4.5.2
# Outputs:
# # 4.5.2
# 
# _Attach tarballs to GitHub releases_
# [[Code]...][[Diff]...]
# 
# ## Fixes
# ...

.github/scripts/extract-changelog.sh ava 2.0.2

Error Handling

  • Missing CHANGELOG.md: exits with code 1
  • Version not found: exits with code 1
  • Invalid arguments: shows usage message

Works with all packages: fast-check, ava, vitest, jest, worker, expect-type, poisoning, packaged.

Original prompt

bash script that given a version will parse the changelog files and print the part for this version. the script should be given the directory of the considered package (fast-check for fast-check, ava for fast-check/ava...)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI self-assigned this Dec 21, 2025
@changeset-bot
Copy link

changeset-bot bot commented Dec 21, 2025

⚠️ No Changeset found

Latest commit: c4de6c6

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copilot AI changed the title [WIP] Add bash script to parse changelog for specific version 🔨 Add script to extract changelog entries by version Dec 21, 2025
Copilot AI requested a review from dubzzz December 21, 2025 21:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants