Skip to content

Insert new version below CHANGELOG intro - #2295

Merged
bluwy merged 2 commits into
changesets:mainfrom
benjie:better-changelog-gen
Sep 10, 2026
Merged

bluwy merged 2 commits into
changesets:mainfrom
benjie:better-changelog-gen

Conversation

@benjie

@benjie benjie commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Currently when you version, content is added directly below the file header (or at the very top of the file if the first line is a version header). This change instead adds the content directly above the first version header if one exists (otherwise previous position is maintained) allowing the CHANGELOG.md file to contain introductory content.

@changeset-bot

changeset-bot Bot commented Sep 8, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: e5a11be

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@changesets/apply-release-plan Patch
@changesets/cli Patch

Not sure what this means? Click here to learn what changesets are.

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

@netlify

netlify Bot commented Sep 8, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for changesets ready!

Name Link
🔨 Latest commit e5a11be
🔍 Latest deploy log https://app.netlify.com/projects/changesets/deploys/6aa129064100f90007997b65
😎 Deploy Preview https://deploy-preview-2295--changesets.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@codecov

codecov Bot commented Sep 8, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.58%. Comparing base (5e54cd9) to head (e5a11be).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2295   +/-   ##
=======================================
  Coverage   84.57%   84.58%           
=======================================
  Files          80       80           
  Lines        3177     3179    +2     
  Branches      896      894    -2     
=======================================
+ Hits         2687     2689    +2     
  Misses        433      433           
  Partials       57       57           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Comment on lines +2188 to +2204
"# Changelog for pkg-a

## Overview

This file contains a history
of changes made to pkg-a. We
hope you enjoy them.

## 1.1.0

### Minor Changes

- Hey, let's have fun with testing!

## 1.0.0

- Fixed some bug"

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This demonstrates the change - the "## Overview" is now maintained and "## 1.1.0" gets added afterwards, rather than adding "## 1.1.0" above the "## Overview" as currently occurs.

Comment thread .changeset/real-comics-punch.md Resolved
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>

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

Looks great. Thanks!

@bluwy
bluwy added this pull request to the merge queue Sep 10, 2026
Merged via the queue into changesets:main with commit bfe9050 Sep 10, 2026
18 checks passed
@benjie
benjie deleted the better-changelog-gen branch September 11, 2026 19:26
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