Skip to content

Commit ed68b82

Browse files
Fix comments
1 parent 791f427 commit ed68b82

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

scripts/github_changelog.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,12 @@ if (!version) {
1111
const changelogPath = path.resolve(__dirname, "../CHANGELOG.md");
1212
const changelog = fs.readFileSync(changelogPath, "utf-8");
1313
const headingStart = "## ";
14-
// Find block with current version
1514
const block = changelog
1615
.split(headingStart)
1716
.find((block) => block.startsWith(`v${version}`))
1817
.trim();
1918
let lines = block.split("\n");
20-
// Remove version
19+
// Remove version heading
2120
lines.splice(0, 1);
2221

2322
console.log(lines.join("\n").trim());

0 commit comments

Comments
 (0)