| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -23,8 +23,9 @@ const commitListingStart = changelog.indexOf('\n### Commits\n'); | |||
| 23 | 23 | let commitList; | |
| 24 | 24 | if (commitListingStart === -1) { | |
| 25 | 25 | // We're preparing a semver-major release. | |
| 26 | - commitList = changelog.replace(/(^.+\n### Semver-Major|\n### Semver-(Minor|Patch)) Commits\n/gs, '') | ||
| 27 | - .replaceAll('**(SEMVER-MAJOR)** ', ''); | ||
| 26 | + assert.match(changelog, /\n### Semver-Major Commits\n/); | ||
| 27 | + // The proposal should contain only the release commit. | ||
| 28 | + commitList = ''; | ||
| 28 | 29 | } else { | |
| 29 | 30 | // We can't assume the Commits section is the one for this release in case of | |
| 30 | 31 | // a release to transition to LTS (i.e. with no commits). | |
| Back | FazBrowse Home | New Git URL |
0 commit comments