diff --git a/scripts/release/__tests__/create-release-issue.test.ts b/scripts/release/__tests__/create-release-issue.test.ts
index 467758164f..586bda3f0a 100644
--- a/scripts/release/__tests__/create-release-issue.test.ts
+++ b/scripts/release/__tests__/create-release-issue.test.ts
@@ -265,22 +265,37 @@ describe('create release issue', () => {
expect(
getSkippedCommitsText({
- commitsWithoutLanguageScope: ['abcdefg fix: something'],
- commitsWithUnknownLanguageScope: ['abcdef2 fix(pascal): what'],
+ commitsWithoutLanguageScope: [
+ 'abcdefg fix: something',
+ 'abcdefg fix: somethin2',
+ ],
+
+ commitsWithUnknownLanguageScope: [
+ 'abcdef2 fix(pascal): what',
+ 'abcdef2 fix(pascal): what is that',
+ ],
})
).toMatchInlineSnapshot(`
- "
- It doesn't mean these commits are being excluded from the release. It means they're not taken into account when the release process figured out the next version number, and updated the changelog.
+ "
+ It doesn't mean these commits are being excluded from the release. It means they're not taken into account when the release process figured out the next version number, and updated the changelog.
+
+
+
+ Commits without language scope:
+
+
+ - abcdefg fix: something
+ - abcdefg fix: somethin2
+
- Commits without language scope:
-
- - abcdefg fix: something
-
+
+
+ Commits with unknown language scope:
+
- Commits with unknown language scope:
-
- - abcdef2 fix(pascal): what
-
"
+ - abcdef2 fix(pascal): what
+ - abcdef2 fix(pascal): what is that
+ "
`);
});
});
diff --git a/scripts/release/create-release-issue.ts b/scripts/release/create-release-issue.ts
index 0261d01a7d..e3ce1827a2 100755
--- a/scripts/release/create-release-issue.ts
+++ b/scripts/release/create-release-issue.ts
@@ -73,18 +73,24 @@ export function getSkippedCommitsText({
return '_(None)_';
}
- return `
- ${TEXT.skippedCommitsDesc}
-
- Commits without language scope:
-
- ${commitsWithoutLanguageScope.map((commit) => `- ${commit}
`)}
-
-
- Commits with unknown language scope:
-
- ${commitsWithUnknownLanguageScope.map((commit) => `- ${commit}
`)}
-
`;
+ return `
+${TEXT.skippedCommitsDesc}
+
+
+
+ Commits without language scope:
+
+
+ ${commitsWithoutLanguageScope.map((commit) => `- ${commit}`).join('\n')}
+
+
+
+
+ Commits with unknown language scope:
+
+
+ ${commitsWithUnknownLanguageScope.map((commit) => `- ${commit}`).join('\n')}
+ `;
}
export function parseCommit(commit: string): Commit {
@@ -278,13 +284,13 @@ async function createReleaseIssue(): Promise {
TEXT.header,
TEXT.versionChangeHeader,
versionChanges,
- TEXT.skippedCommitsHeader,
- skippedCommits,
TEXT.descriptionVersionChanges,
TEXT.indenpendentVersioning,
TEXT.changelogHeader,
TEXT.changelogDescription,
changelogs,
+ TEXT.skippedCommitsHeader,
+ skippedCommits,
TEXT.approvalHeader,
TEXT.approval,
].join('\n\n');