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

fix: don’t linkify gitlab.com repositories

parent 095cb3b0
No related branches found
No related tags found
No related merge requests found
...@@ -107,9 +107,11 @@ export async function getReleaseNotes( ...@@ -107,9 +107,11 @@ export async function getReleaseNotes(
releaseNotes = null; releaseNotes = null;
} else { } else {
try { try {
releaseNotes.body = linkify(releaseNotes.body, { if (baseUrl !== 'https://gitlab.com/') {
repository: `${baseUrl}${repository}`, releaseNotes.body = linkify(releaseNotes.body, {
}); repository: `${baseUrl}${repository}`,
});
}
} catch (err) /* istanbul ignore next */ { } catch (err) /* istanbul ignore next */ {
logger.warn({ err, baseUrl, repository }, 'Error linkifying'); logger.warn({ err, baseUrl, repository }, 'Error linkifying');
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment