Socket
Socket
Sign inDemoInstall

@semantic-release/release-notes-generator

Package Overview
Dependencies
6
Maintainers
4
Versions
78
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

@semantic-release/release-notes-generator


Version published
Maintainers
4
Created

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

Customizable release-notes-generator plugin for semantic-release based on conventional-changelog

npm npm Greenkeeper badge license styled with prettier semantic-release Commitizen friendly

Travis Codecov

Options

By default release-notes-generator uses the angular format described in Angular convention.

Additionnal options can be set within the plugin definition in package.json to use a different commit format and to customize it:

{
  "release": {
    "generateNotes": {
      "preset": "angular",
      "parserOpts": {
        "noteKeywords": ["BREAKING CHANGE", "BREAKING CHANGES", "BREAKING"]
      },
      "writerOpts": {
        "commitsSort": ["subject", "scope"],
      }
    }
  }
}
OptionDescriptionDefault
presetconventional-changelog preset (Possible values: angular, atom, codemirror, ember, eslint, express, jquery, jscs, jshint).angular
configNPM package name of a custom conventional-changelog preset.-
parserOptsAdditional conventional-commits-writer options that will extends ones loaded by preset or config. See Writer options.-
writerOptsAdditional conventional-commits-parser options that will extends ones loaded by preset or config. See Parser options.-

NOTE: options.config will be overwritten by the values of preset. You should use either preset or config, but not both. Individual properties of parserOpts and writerOpts will overwrite ones loaded with preset or config.

Parser Options

Allow to overwrite specific conventional-commits-parser options. This is convenient to use a conventional-changelog preset with some customizations without having to create a new module.

The following example uses Angular convention but will consider a commit to be a breaking change if it's body contains BREAKING CHANGE, BREAKING CHANGES or BREAKING. By default the preset checks only for BREAKING CHANGE and BREAKING CHANGES.

{
  "release": {
    "generateNotes": {
      "preset": "angular",
      "parserOpts": {
        "noteKeywords": ["BREAKING CHANGE", "BREAKING CHANGES", "BREAKING"],
      }
    }
  }
}

Writer Options

Allow to overwrite specific conventional-commits-writer options. This is convenient to use a conventional-changelog preset with some customizations without having to create a new module.

The following example uses Angular convention but will sort the commits in the changelog by subject then scope. By default the preset sort the commits in the changelog by scope then subject.

{
  "release": {
    "generateNotes": {
      "preset": "angular",
      "writerOpts": {
        "commitsSort": ["subject", "scope"],
      }
    }
  }
}

Keywords

FAQs

Last updated on 21 Sep 2017

Did you know?

Socket

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc