feat(dev-infra): create ReleaseNotes class for generating release notes during publishing (#41476)

Generate release notes to be used for entries in both CHANGELOG.md files as well as
Github releases.

PR Close #41476
This commit is contained in:
Joey Perrott
2021-04-01 16:28:17 -07:00
committed by Zach Arend
parent 7e6989ee4b
commit 5e0d5a9ec2
17 changed files with 648 additions and 30 deletions
+6
View File
@@ -25,6 +25,7 @@ var cliProgress = require('cli-progress');
var os = require('os');
var minimatch = require('minimatch');
var ora = require('ora');
require('ejs');
var glob = require('glob');
var ts = require('typescript');
@@ -5580,6 +5581,11 @@ function isCommitClosingPullRequest(api, sha, id) {
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/** List of types to be included in the release notes. */
const typesToIncludeInReleaseNotes = Object.values(COMMIT_TYPES)
.filter(type => type.releaseNotesLevel === ReleaseNotesLevel.Visible)
.map(type => type.name);
/**
* Gets the default pattern for extracting release notes for the given version.
* This pattern matches for the conventional-changelog Angular preset.