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 merge requests found
......@@ -107,9 +107,11 @@ export async function getReleaseNotes(
releaseNotes = null;
} else {
try {
releaseNotes.body = linkify(releaseNotes.body, {
repository: `${baseUrl}${repository}`,
});
if (baseUrl !== 'https://gitlab.com/') {
releaseNotes.body = linkify(releaseNotes.body, {
repository: `${baseUrl}${repository}`,
});
}
} catch (err) /* istanbul ignore next */ {
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