# A change file has a mistake

What "has a mistake" means for a change file in .changes and how to fix it.

```text
error: .changes/buttons-take-an-icon.md has a mistake: its list of packages has to end with ---
hint: A change file starts with ---, a line such as "ui": minor for each package, and ---, then says what changed.
```

## Why it happens

With `versions = "changes"`, [`axle release`](https://axlers.dev/docs/reference/release.md#versions-from-change-files) reads each Markdown file in `.changes/`. One of them doesn't have the shape it needs: front matter between two `---` lines naming each package and its bump, `patch`, `minor` or `major`, then the text for the changelog. Or it names a package that has no version to release, or one whose [release group](https://axlers.dev/docs/reference/release.md#release-groups) takes its versions from commits, or `axle release add` was given a package without `=patch`, `=minor` or `=major`, or no message. `axle release add` with a package that isn't in the workspace is [`unknown-package`](https://axlers.dev/docs/messages/unknown-package.md) instead. Quotes around the names are optional.

## How to fix it

Fix the file the message names so it looks like this, with packages from the workspace whose `package.json` has a version:

```markdown
---
'ui': minor
'web': patch
---

Buttons take an icon.
```

Or delete it and write it again with `axle release add ui=minor web=patch --message "Buttons take an icon."`.
