mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Fix scripts/create-release-pr PR body generation
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
parent
ef6f4a5bfa
commit
dc02c2a9fe
@ -152,11 +152,15 @@ const prBodyLines = [
|
|||||||
"",
|
"",
|
||||||
];
|
];
|
||||||
|
|
||||||
|
function getPrEntry(pr) {
|
||||||
|
return `- ${pr.title} (**[#${pr.number}](https://github.com/lensapp/lens/pull/${pr.number})**) https://github.com/${pr.author.login}`;
|
||||||
|
}
|
||||||
|
|
||||||
if (enhancementPrs.length > 0) {
|
if (enhancementPrs.length > 0) {
|
||||||
prBodyLines.push(
|
prBodyLines.push(
|
||||||
"## 🚀 Features",
|
"## 🚀 Features",
|
||||||
"",
|
"",
|
||||||
...enhancementPrs.map(pr => `- ${pr.title} (**#${pr.number}**) https://github.com/${pr.author.login}`),
|
...enhancementPrs.map(getPrEntry),
|
||||||
"",
|
"",
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -165,7 +169,7 @@ if (bugfixPrs.length > 0) {
|
|||||||
prBodyLines.push(
|
prBodyLines.push(
|
||||||
"## 🐛 Bug Fixes",
|
"## 🐛 Bug Fixes",
|
||||||
"",
|
"",
|
||||||
...bugfixPrs.map(pr => `- ${pr.title} (**#${pr.number}**) https://github.com/${pr.author.login}`),
|
...bugfixPrs.map(getPrEntry),
|
||||||
"",
|
"",
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -174,7 +178,7 @@ if (maintenencePrs.length > 0) {
|
|||||||
prBodyLines.push(
|
prBodyLines.push(
|
||||||
"## 🧰 Maintenance",
|
"## 🧰 Maintenance",
|
||||||
"",
|
"",
|
||||||
...maintenencePrs.map(pr => `- ${pr.title} (**#${pr.number}**) https://github.com/${pr.author.login}`),
|
...maintenencePrs.map(getPrEntry),
|
||||||
"",
|
"",
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue
Block a user