Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion ng-dev/release/notes/templates/changelog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ export default `
# <%- version %><% if (title) { %> "<%- title %>"<% } %> (<%- dateStamp %>)

<%_
const commitsInChangelog = commits.filter(includeInReleaseNotes());
if (commitsInChangelog.length === 0) {
_%>

No user facing changes in this release
<%_
}
const breakingChanges = commits.filter(hasBreakingChanges);
if (breakingChanges.length) {
_%>
Expand Down Expand Up @@ -54,7 +61,6 @@ _%>
_%>

<%_
const commitsInChangelog = commits.filter(includeInReleaseNotes());
for (const group of asCommitGroups(commitsInChangelog)) {
_%>

Expand Down
5 changes: 5 additions & 0 deletions ng-dev/release/notes/templates/github-release.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@
export default `
<%_
const commitsInChangelog = commits.filter(includeInReleaseNotes());
if (commitsInChangelog.length === 0) {
_%>
No user facing changes in this release
<%_
}
for (const group of asCommitGroups(commitsInChangelog)) {
_%>

Expand Down
1 change: 1 addition & 0 deletions ng-dev/release/publish/test/common.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -520,6 +520,7 @@ describe('common release action logic', () => {
);
expect(changelogContent).toMatch(changelogPattern`
# 10.0.1 <..>
No user facing changes in this release

<!-- CHANGELOG SPLIT MARKER -->

Expand Down