Files
directus/packages/release-notes-generator
Rijk van Zanten e72483fb76 Add Codecov upload on test CI (#25470)
* Add consistent test:coverage scripts

* Add missing coverage deps

* Submit to codecov

* Update .github/workflows/check.yml

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* Add codecov config

* Run formatter, remove branches

---------

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2025-07-17 16:29:02 -04:00
..
2025-01-02 15:37:30 +01:00

@directus/release-notes-generator

A release notes generator for changesets used by Directus

Installation

npm install @directus/release-notes-generator

Usage

Update the .changeset/config.json file to point to this package:

	"changelog": "@directus/release-notes-generator",

The release notes will be generated and printed when running the changesets command to update the versions:

GITHUB_TOKEN=<token> pnpm changeset version

For local use, you'll need a GitHub personal access token with read:user and repo:status permissions.

To force the main version:

DIRECTUS_VERSION=10.0.0 GITHUB_TOKEN=<token> pnpm changeset version

# To force a prerelease version you need to be in prerelease mode
pnpm changeset pre enter beta
DIRECTUS_VERSION=10.0.0-beta.0 GITHUB_TOKEN=<token> pnpm changeset version

GitHub CI

When running pnpm changeset version in the GitHub CI context, this package will automatically set the following outputs:

  • DIRECTUS_VERSION
  • DIRECTUS_PRERELEASE
  • DIRECTUS_PRERELEASE_ID (available if DIRECTUS_PRERELEASE is true)
  • DIRECTUS_RELEASE_NOTES

Special Changesets Features

Notices in Changesets

In addition to the normal content, changeset may include a notice to draw special attention to a change. These notices will be rendered in the release notes under the section "⚠️ Potential Breaking Changes".

Use the following format to add such a notice:

---
'example-package': patch
---

::: notice
Notices can contain any markdown syntax

- An important notice
:::

Normal changeset summary