scripts/patch-release-for-pr: include PR link in generated body

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2025-11-21 13:45:12 +01:00
parent fa6aa57345
commit d8b7285f88
+7 -1
View File
@@ -314,7 +314,13 @@ async function main(args) {
// Generate PR body
let body;
if (descriptions) {
const descriptionList = descriptions.map(desc => `- ${desc}`).join('\n');
const descriptionList = descriptions
.map((desc, index) => {
const prNumber = prNumbers[index];
const prLink = `https://github.com/${owner}/${repo}/pull/${prNumber}`;
return `- ${desc} ([#${prNumber}](${prLink}))`;
})
.join('\n');
body = `This patch release includes the following fixes:\n\n${descriptionList}`;
} else {
body = 'This release fixes an issue where';