3.0.1 • Published 7 months ago

@mheob/changeset-changelog v3.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

@mheob/changeset-changelog

Release Check codecov

Add my own style for the changelogs generated by the awesome changesets library. The style was inspired by the original @changesets/changelog-github and the @svitejs/changesets-changelog-github-compact packages.

Installation

With NPM

npm install -D @mheob/changeset-changelog

With YARN

yarn add -D @mheob/changeset-changelog

With PNPM

pnpm add -D @mheob/changeset-changelog

Usage

Set in your .changeset/config.json file the following snippet:

"changelog": ["@mheob/changeset-changelog", { "repo": "YOUR_ORG_OR_USER/YOUR_REPO" }]

Output

There are differences between this changelog output and the others:

@changesets/changelog-github

  • #PR-ID commit Thanks @user! - Add nice feature to the project with a PR and commit
  • commit Thanks @user! - Add nice feature to the project without a PR

@svitejs/changesets-changelog-github-compact

  • Add nice feature to the project with a PR and commit (#PR)
  • Add nice feature to the project without a PR (commit)

@mheob/changeset-changelog

  • PR (@user): Add nice feature to the project with a PR and commit
  • commit (@user): Add nice feature to the project without a PR

Additional feature: linking issues

Thanks to @svitejs/changesets-changelog-github-compact for this nice feature!

All links to issues (or pull requests) in the chageset will automatically converted to a link.\ To enable the changeset have to called it like this variants:

  • (fix: #123),
  • (fixes: #123),
  • (resolves: #123) or
  • (see: #123)

Example

The changeset

---
'@mheob/changeset-changelog': patch
---
Add nice feature to the project (see #123)

will outputted in the changelog like

#130 (@user): Add nice Feature to the project, (see #123)

3.0.1

7 months ago

3.0.0

1 year ago

2.0.1

1 year ago

2.0.0

2 years ago

1.0.0

2 years ago