| name | changelog-creation |
| description | Use when a source code change needs a changelog entry, or before committing and pushing any bug fix, feature, or behavior change to source code - detecting when entries are required, categorizing changes correctly (added/changed/fixed/deprecated/removed/security), writing user-facing titles, and creating the JSON entry in .changelogs/ |
When a Changelog Entry Is Required
Any PR that changes source code needs a changelog entry. This includes bug fixes, new features, behavior changes, deprecations, and security fixes.
Not required for:
- Test-only changes (no production code touched)
- Documentation-only changes
- CI/tooling changes
- Fixing a bug that was introduced but not yet released (the regression never reached users, so there is nothing to document)
Add [skip changelog] in the PR description to explicitly skip.
Workflow: Create the PR First, Then the Changelog
This is the issuesOrigin: "private" flow — the default, and what almost every entry uses. The changelog file is named after the GitHub PR number, so the PR must exist before the entry is written. Guessing the next available number by reading .changelogs/ or the GitHub API is unreliable — another PR can be opened between the check and the push, and the filename will no longer match.
Correct order:
- Commit the source code change on the feature branch.
- Push the branch and run
gh pr create (see the pr-creation skill).
- Read the PR number from the URL
gh pr create prints (e.g. https://github.com/handsontable/handsontable/pull/12395 → 12395).
- Create
.changelogs/<PR-number>.json at the repo root using that number, set "issueOrPR" to the same number. The correct path is always <repo-root>/.changelogs/<PR-number>.json — never inside a package subdirectory like handsontable/.changelogs/.
- Commit the new file with a message like
DEV-xxx: Add changelog entry for PR #<number> and push — the PR picks it up.
For the rare case where the entry cites a public GitHub issue instead, see Issue Origin below.
JSON Format
Create a file at .changelogs/{PR-number}.json (using the PR number returned by gh pr create):
{
"issuesOrigin": "private",
"title": "User-facing description of what changed.",
"type": "fixed",
"issueOrPR": 12345,
"breaking": false,
"framework": "none"
}
Issue Origin
issuesOrigin answers one question: is the number in issueOrPR a public GitHub issue? It says nothing about the PR, and nothing about whether the repository is public.
The field picks the link path in the generated CHANGELOG.md, and bin/changelog derives the filename from issueOrPR, so the two fields move together:
issuesOrigin | issueOrPR | Filename | Rendered link |
|---|
"private" — default, almost always | PR number | <PR-number>.json | .../pull/<n> |
"public" — rare | public GitHub issue number | <issue-number>.json | .../issues/<n> |
Use "private" when the work is tracked in a private ClickUp task — this is the normal case, including every task with a DEV-xxx ID. Use "public" only when you are citing a real public GitHub issue number; then name the file after the issue, not the PR.
Getting this wrong is not fatal — GitHub redirects /issues/<n> to /pull/<n> — but it publishes a wrong path in the release notes and makes the field meaningless.
Categorization Guide
| Type | When to use | Title example |
|---|
added | A wholly new feature or capability | "Added pagination plugin for large datasets." |
changed | Enhancement or modification to existing behavior | "Improved column resize performance with CSS scale transforms." |
fixed | A bug fix | "Fixed filters not updating after manual column move." |
deprecated | Feature scheduled for removal in the next major | "Deprecated moment-based date formatting in favor of native Intl." |
removed | Feature already removed in this release | "Removed legacy row grouping plugin." |
security | Vulnerability or XSS fix | "Fixed XSS vulnerability in custom HTML cell renderer." |
Writing a Good Title
- Write from the user's perspective. Describe what changed for someone using Handsontable, not what you changed in the code.
- Start with a past-tense verb: "Added...", "Fixed...", "Improved...", "Removed..."
- Be specific. Instead of "Fixed a bug", write "Fixed cell editor closing unexpectedly on scroll."
- Do not reference internal code. Avoid titles like "Refactored DataMap" or "Updated metaSchema.js". Users do not know these internals.
- End with a period.
- Breaking changes (
"breaking": true) appear first in the generated changelog. Make the title clearly describe what breaks and what to do instead.
Framework Field
| Value | When to use |
|---|
"none" | Default. Change affects the core handsontable package. |
"react" | Change is specific to @handsontable/react-wrapper. |
"angular" | Change is specific to @handsontable/angular-wrapper. |
"vue" | Change is specific to @handsontable/vue3. |
CLI Tool
For interactive creation, run:
node bin/changelog entry
This walks you through each field and writes the JSON file for you. You can also create the file manually -- the format is simple enough.
One Entry Per Changelog Section
Never add two entries that land in the same CHANGELOG.md section for the same package. One entry per PR is the norm. The authoritative rule lives in .changelogs/README.md; this section is the short form.
That holds even when the PR fixes several issues or makes several distinct user-facing changes. The title describes the overall change; it does not list individual issues.
Do not add a second entry with the same type and framework because:
- the PR fixes a second bug that has no issue of its own — fold it into the one title;
- the changes feel unrelated — if they are genuinely unrelated, they belong in separate PRs.
A second entry is correct when it lands elsewhere — a different type, or a different framework. A public issue fixed alongside a private behavior change is the common case: fixed plus changed. Those cannot fold into one file, because a file carries one type and type picks the section.
Before you commit, list what the branch adds:
git fetch origin develop
git diff --name-only --diff-filter=A origin/develop...HEAD -- '.changelogs/*.json'
Read the type and framework of every path it lists. Two paths that share both are wrong — fold them together and delete the extra. Swap develop for the PR's base branch when you target a release branch.
Checklist
- Confirm the PR already exists (open or draft). Capture its number from the
gh pr create output or the PR URL.
- Pick the correct
type from the table above.
- Write a clear, user-facing
title ending with a period.
- Set
breaking to true only if the change breaks existing behavior.
- Set
framework to match the affected package, or "none" for core.
- Leave
issuesOrigin as "private" unless the entry cites a real public GitHub issue number — see Issue Origin.
- Name the file
<PR-number>.json and set "issueOrPR" to the same number. Do not guess or infer the number — read it from the created PR. Write to <repo-root>/.changelogs/<PR-number>.json — not inside any package subdirectory (e.g. handsontable/.changelogs/ is wrong). With "public", both the filename and issueOrPR use the issue number instead.
- Commit and push the new changelog file to the same feature branch so the open PR picks it up.
- Confirm no two files the branch adds under
.changelogs/ share the same type and framework — see One Entry Per Changelog Section.