Further improved auto-changelogs (#7600)

This commit is contained in:
Selis
2024-01-21 11:53:14 +01:00
committed by GitHub
parent fc022033d5
commit e1b5803ce2
14 changed files with 776 additions and 116 deletions

View File

@@ -0,0 +1,21 @@
import assert from "node:assert/strict";
import { changelogToYml } from "./autoChangelog.js";
import { parseChangelog } from "./changelogParser.js";
assert.equal(
changelogToYml(
parseChangelog(`
My cool PR!
:cl: DenverCoder9
add: Adds new stuff
add: Adds more stuff
/:cl:
`)
),
`author: "DenverCoder9"
delete-after: True
changes:
- rscadd: "Adds new stuff"
- rscadd: "Adds more stuff"`
);