chore: updating release scripts to have proper includes and fixing next release formatting

Co-authored-by: Patrik Oldsberg <poldsberg@gmail.com>
Signed-off-by: blam <ben@blam.sh>
This commit is contained in:
blam
2022-02-01 15:46:38 +01:00
parent 0b83dc7333
commit 1233350ccd
2 changed files with 3 additions and 2 deletions
+2 -2
View File
@@ -142,7 +142,8 @@ async function getReleaseDescriptionFromCommitMessage(commitMessage) {
// Use the PR description to prepare for the release description
const isChangesetRelease = commitMessage.includes(CHANGESET_RELEASE_BRANCH);
if (isChangesetRelease) {
return data.body.split('\n').slice(3).join('\n');
const lines = data.body.split('\n');
return lines.slice(lines.indexOf('# Releases') + 1).join('\n');
}
return data.body;
@@ -182,7 +183,6 @@ async function main() {
const releaseDescription = await getReleaseDescriptionFromCommitMessage(
commitMessage,
);
await createRelease(releaseDescription);
}