Skip to content
Snippets Groups Projects
Commit 3eaa75f3 authored by Rhys Arkins's avatar Rhys Arkins
Browse files

fix: use looser changelog heading matching

parent 203930d2
No related branches found
No related tags found
No related merge requests found
......@@ -104,7 +104,7 @@ async function getReleaseNotesMd(repository, version) {
const body = section.replace(/.*?\n/, '').trim();
if (title) {
for (let i = 0; i < title.length; i += 1) {
if (title[i].endsWith(version) || title[i].includes(`[${version}]`)) {
if (title[i].includes(version) || title[i].includes(`v${version}`)) {
logger.trace({ body }, 'Found release notes for v' + version);
let url = `https://github.com/${repository}/blob/master/CHANGELOG.md#`;
url += title.join('-').replace(/[^A-Za-z0-9-]/g, '');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment