Socket
Socket
Sign inDemoInstall

@semantic-release/release-notes-generator

Package Overview
Dependencies
459
Maintainers
4
Versions
75
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @semantic-release/release-notes-generator

semantic-release plugin to generate changelog content with conventional-changelog


Version published
Weekly downloads
950K
decreased by-21.79%
Maintainers
4
Install size
8.32 MB
Created
Weekly downloads
 

Package description

What is @semantic-release/release-notes-generator?

The @semantic-release/release-notes-generator package is a plugin for the semantic-release system. It automates the generation of release notes based on your project's commit history, adhering to the Semantic Versioning specification. This tool parses commit messages, groups them into sections, and formats them into a markdown document, which can then be used in release documentation.

What are @semantic-release/release-notes-generator's main functionalities?

Generate release notes

This feature automates the creation of release notes from commits. The code sample shows how to use the release-notes-generator in a Node.js script to generate release notes by providing plugin configuration and context.

const generateNotes = require('@semantic-release/release-notes-generator');

async function generateReleaseNotes(pluginConfig, context) {
  const notes = await generateNotes(pluginConfig, context);
  console.log(notes);
}

Other packages similar to @semantic-release/release-notes-generator

Readme

Source

release-notes-generator

semantic-release plugin to generate changelog content with conventional-changelog

Build Status npm latest version npm next version

StepDescription
generateNotesGenerate release notes for the commits added since the last release with conventional-changelog.

Install

$ npm install @semantic-release/release-notes-generator -D

Usage

The plugin can be configured in the semantic-release configuration file:

{
  "plugins": [
    [
      "@semantic-release/commit-analyzer",
      {
        "preset": "angular",
        "parserOpts": {
          "noteKeywords": ["BREAKING CHANGE", "BREAKING CHANGES", "BREAKING"]
        }
      }
    ],
    [
      "@semantic-release/release-notes-generator",
      {
        "preset": "angular",
        "parserOpts": {
          "noteKeywords": ["BREAKING CHANGE", "BREAKING CHANGES", "BREAKING"]
        },
        "writerOpts": {
          "commitsSort": ["subject", "scope"]
        }
      }
    ]
  ]
}

With this example:

  • the commits that contains BREAKING CHANGE, BREAKING CHANGES or BREAKING in their body will be considered breaking changes (by default the angular preset checks only for BREAKING CHANGE and BREAKING CHANGES)
  • the commits will be sorted in the changelog by subject then scope (by default the angular preset sort the commits in the changelog by scope then subject)

Configuration

Options

OptionDescriptionDefault
presetconventional-changelog preset (possible values: angular, atom, codemirror, ember, eslint, express, jquery, jshint, conventionalcommits).angular
configNPM package name of a custom conventional-changelog preset.-
parserOptsAdditional conventional-commits-parser options that will extends the ones loaded by preset or config. This is convenient to use a conventional-changelog preset with some customizations without having to create a new module.-
writerOptsAdditional conventional-commits-writer options that will extends the ones loaded by preset or config. This is convenient to use a conventional-changelog preset with some customizations without having to create a new module.-
hostThe host used to generate links to issues and commits. See conventional-changelog-writer#host.The host from the repositoryurl option.
linkCompareWhether to include a link to compare changes since previous release in the release note.true
linkReferencesWhether to include a link to issues and commits in the release note. See conventional-changelog-writer#linkreferences.true
commitKeyword used to generate commit links (formatted as <host>/<owner>/<repository>/<commit>/<commit_sha>). See conventional-changelog-writer#commit.commits for Bitbucket repositories, commit otherwise
issueKeyword used to generate issue links (formatted as <host>/<owner>/<repository>/<issue>/<issue_number>). See conventional-changelog-writer#issue.issue for Bitbucket repositories, issues otherwise
presetConfigAdditional configuration passed to the conventional-changelog preset. Used for example with conventional-changelog-conventionalcommits.-

Notes: in order to use a preset it must be installed (for example to use the eslint preset you must install it with npm install conventional-changelog-eslint -D)

Note: config will be overwritten by the values of preset. You should use either preset or config, but not both.

Note: Individual properties of parserOpts and writerOpts will override ones loaded with an explicitly set preset or config. If preset or config are not set, only the properties set in parserOpts and writerOpts will be used.

Note: For presets that expects a configuration object, such as conventionalcommits, the presetConfig option must be set.

Keywords

FAQs

Last updated on 24 Mar 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc