Skip to content

Commit

Permalink
Merge pull request #676 from ckeditor/i/8167
Browse files Browse the repository at this point in the history
Feature (env): `generateChangelogForMonoRepository()` accepts a new option (`options.skipLinks` which is `false` by default) to omit release or commit links in generated changelog. Closes ckeditor/ckeditor5#8167.
  • Loading branch information
pomek authored Oct 22, 2020
2 parents bbb5495 + 36d75fe commit 4ef99ed
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ const noteInfo = `[ℹ️](${ VERSIONING_POLICY_URL }#major-and-minor-breaking-c
*
* @param {Array.<String>} [options.skipPackages=[]] Name of packages which won't be touched.
*
* @param {Boolean} [options.skipLinks=false] If set on true, links to release or commits will be omitted.
*
* @param {String} [options.from] A commit or tag name that will be the first param of the range of commits to collect.
*
* @param {Boolean} [options.highlightsPlaceholder=false] Whether to add a note about release highlights.
Expand Down Expand Up @@ -279,7 +281,9 @@ module.exports = function generateChangelogForMonoRepository( options ) {
previousTag: 'v' + pkgJson.version,
isPatch: semver.diff( version, pkgJson.version ) === 'patch',
highlightsPlaceholder: options.highlightsPlaceholder || false,
collaborationFeatures: options.collaborationFeatures || false
collaborationFeatures: options.collaborationFeatures || false,
skipCommitsLink: Boolean( options.skipLinks ),
skipCompareLink: Boolean( options.skipLinks )
};

const writerOptions = getWriterOptions( {
Expand Down

0 comments on commit 4ef99ed

Please sign in to comment.