We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 791f427 commit ed68b82Copy full SHA for ed68b82
scripts/github_changelog.js
@@ -11,13 +11,12 @@ if (!version) {
11
const changelogPath = path.resolve(__dirname, "../CHANGELOG.md");
12
const changelog = fs.readFileSync(changelogPath, "utf-8");
13
const headingStart = "## ";
14
-// Find block with current version
15
const block = changelog
16
.split(headingStart)
17
.find((block) => block.startsWith(`v${version}`))
18
.trim();
19
let lines = block.split("\n");
20
-// Remove version
+// Remove version heading
21
lines.splice(0, 1);
22
23
console.log(lines.join("\n").trim());
0 commit comments