build: adapt to new structure

This commit is contained in:
Sören Weber 2024-09-20 21:49:35 +02:00
parent 997e5c41d6
commit 6d3ef8d537
No known key found for this signature in database
GPG key ID: BEC6D55545451B6D
5 changed files with 138 additions and 77 deletions

View file

@ -44,7 +44,8 @@ module.exports = {
milestoneMatch: "{{tag_name}}",
onlyMilestones: true,
template: {
changelogTitle: "",
group: "\n### {{heading}}\n",
release: ({ body, date, release }) => `## ${release} (` + date.replace( /(\d+)\/(\d+)\/(\d+)/, '$3-$2-$1' ) + `)\n\n[★ What's new in this version ★](https://mcshelby.github.io/hugo-theme-relearn/basics/releasenotes/` + release.replace( /(\d+)\.(\d+)\.(\d+)/, '$1' ) + `/#` + release.replace( /(\d+)\.(\d+)\.(\d+)/, '$1-$2-0' ) + `)\n${body}`,
release: ({ body, date, release }) => `## ${release} (` + date.replace( /(\d+)\/(\d+)\/(\d+)/, '$3-$2-$1' ) + `)\n${body}`,
},
};