• Stars
    star
    306
  • Rank 136,456 (Top 3 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 7 years ago
  • Updated 4 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

๐Ÿ“‹ semantic-release plugin to generate changelog content with conventional-changelog

release-notes-generator

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

Build Status npm latest version npm next version

Step Description
generateNotes Generate 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

Option Description Default
preset conventional-changelog preset (possible values: angular, atom, codemirror, ember, eslint, express, jquery, jshint, conventionalcommits). angular
config NPM package name of a custom conventional-changelog preset. -
parserOpts Additional 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. -
writerOpts Additional 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. -
host The host used to generate links to issues and commits. See conventional-changelog-writer#host. The host from the repositoryurl option.
linkCompare Whether to include a link to compare changes since previous release in the release note. true
linkReferences Whether to include a link to issues and commits in the release note. See conventional-changelog-writer#linkreferences. true
commit Keyword used to generate commit links (formatted as <host>/<owner>/<repository>/<commit>/<commit_sha>). See conventional-changelog-writer#commit. commits for Bitbucket repositories, commit otherwise
issue Keyword used to generate issue links (formatted as <host>/<owner>/<repository>/<issue>/<issue_number>). See conventional-changelog-writer#issue. issue for Bitbucket repositories, issues otherwise
presetConfig Additional 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.

More Repositories

1

semantic-release

๐Ÿ“ฆ๐Ÿš€ Fully automated version management and package publishing
JavaScript
18,874
star
2

github

:octocat: semantic-release plugin to publish a GitHub release and comment on released Pull Requests/Issues
JavaScript
401
star
3

commit-analyzer

๐Ÿ’ก semantic-release plugin to analyze commits with conventional-changelog
JavaScript
361
star
4

cli

๐Ÿ†‘๐Ÿ“ Setup automated semver compliant package publishing
JavaScript
359
star
5

changelog

๐Ÿ“˜ semantic-release plugin to create or update a changelog file
JavaScript
253
star
6

git

๐Ÿ”€ semantic-release plugin to commit release assets to the project's git repository
JavaScript
252
star
7

npm

๐Ÿšข semantic-release plugin to publish a npm package
JavaScript
242
star
8

gitlab

๐ŸฆŠ semantic-release plugin to publish a GitLab release
JavaScript
233
star
9

env-ci

Get environment variables exposed by CI services
JavaScript
228
star
10

cracks

๐Ÿ’ข๐Ÿ” breaking change detection
JavaScript
111
star
11

gitlab-config

๐ŸฆŠ Semantic-release shareable config for GitLab
JavaScript
39
star
12

travis-deploy-once

๐ŸšซTest multiple node versions on Travis. Deploy once. If all of them pass.
JavaScript
34
star
13

issue-parser

Parser for Github, GitLab and Bitbucket issues actions, references and mentions
JavaScript
22
star
14

release-notes-generator-v3

โ›” This repository has been archived
JavaScript
11
star
15

twitter-together

Submit tweets for https://twitter.com/SemanticRelease using pull requests
11
star
16

condition-travis

๐Ÿšซ semantic-release plugin to check Travis CI environment before publishing.
JavaScript
9
star
17

error

๐Ÿ’ฅ ๐Ÿ’ฌ errors but with error code
JavaScript
9
star
18

evolution

Proposals for changes to semantic-release
8
star
19

apm-config

:atom: semantic-release shareable config to publish Atom packages with apm
JavaScript
7
star
20

wordpress

๐Ÿถ Semantic Release plugin for packaging up WordPress plugins / themes
TypeScript
7
star
21

commit-analyzer-v2

๐Ÿšซ This repository has been archived
JavaScript
4
star
22

npm-registry-docker

๐Ÿšข CouchDB Docker image running npm-registry-couchapp
Shell
3
star
23

.github

Common configuration for the semantic-release organization
3
star
24

last-release-git-tag

๐Ÿšซ Determine the version of the last release with git tags
JavaScript
2
star
25

last-release-npm

๐Ÿšซ determine the version of the last release via the npm registry
JavaScript
2
star
26

condition-codeship

๐Ÿšซ make sure the right builds on codeship get published
JavaScript
1
star
27

condition-nsp

JavaScript
1
star
28

semantic-release.github.io

Project Website
CSS
1
star
29

welcome

๐Ÿ“ฆ๐Ÿค— Welcome to the semantic-release community
1
star