From 36d75fef2e65e546397e93bcb7f4c610a542d945 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Smyrek?= Date: Thu, 22 Oct 2020 09:23:40 +0200 Subject: [PATCH] Provide an option to skip links in the changelog generator for monorepo packages --- .../tasks/generatechangelogformonorepository.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/ckeditor5-dev-env/lib/release-tools/tasks/generatechangelogformonorepository.js b/packages/ckeditor5-dev-env/lib/release-tools/tasks/generatechangelogformonorepository.js index dd4590782..836ad7fc6 100644 --- a/packages/ckeditor5-dev-env/lib/release-tools/tasks/generatechangelogformonorepository.js +++ b/packages/ckeditor5-dev-env/lib/release-tools/tasks/generatechangelogformonorepository.js @@ -46,6 +46,8 @@ const noteInfo = `[ℹ️](${ VERSIONING_POLICY_URL }#major-and-minor-breaking-c * * @param {Array.} [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. @@ -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( {