Skip to content

Commit

Permalink
Roll-up changelog entries for beta releases (#867)
Browse files Browse the repository at this point in the history
* Roll-up changelog entries for beta releases

* Upgrade to latest gren for more order stability; pull in latest PR title updates
  • Loading branch information
cjbarth committed Jun 9, 2023
1 parent 0c2cced commit a14f25a
Show file tree
Hide file tree
Showing 4 changed files with 399 additions and 644 deletions.
18 changes: 7 additions & 11 deletions .grenrc.js
Expand Up @@ -2,7 +2,7 @@ module.exports = {
dataSource: "prs",
prefix: "",
onlyMilestones: false,
ignoreTagsWith: ["v0.32.0", "0.0.3"],
ignoreTagsWith: ["beta"],
ignoreLabels: [
"semver-major",
"semver-minor",
Expand Down Expand Up @@ -37,21 +37,17 @@ module.exports = {
placeholders.name,
`[${placeholders.text}](${placeholders.url})`,
];
return parts.filter((_) => _).join(" ");
return parts
.filter((_) => _)
.join(" ")
.replace(" ", " ");
},
release: function (placeholders) {
let dateParts = placeholders.date.split("/");
let placeholdersDate = new Date(
Number(dateParts[2]),
Number(dateParts[1]) - 1,
Number(dateParts[0])
);
let isoDateString = placeholdersDate.toISOString().split("T")[0];
placeholders.body = placeholders.body.replace(
"*No changelog for this release.*",
"\n_No changelog for this release._"
);
return `## ${placeholders.release} (${isoDateString})\n${placeholders.body}`;
return `## ${placeholders.release} (${placeholders.date})\n${placeholders.body}`;
},
group: function (placeholders) {
const iconMap = {
Expand All @@ -64,7 +60,7 @@ module.exports = {
Dependencies: "🔗",
};
const icon = iconMap[placeholders.heading] || "🙈";
return "\n#### " + icon + " " + placeholders.heading + ":\n";
return "\n#### " + icon + " " + placeholders.heading + "\n";
},
},
};

0 comments on commit a14f25a

Please sign in to comment.