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

fix: tree/master sourceDirectory

Closes #3096
parent d78e6a04
No related merge requests found
...@@ -48,7 +48,9 @@ async function getPrBody(config) { ...@@ -48,7 +48,9 @@ async function getPrBody(config) {
let fullUrl = sourceUrl; let fullUrl = sourceUrl;
if (sourceDirectory) { if (sourceDirectory) {
fullUrl = fullUrl =
sourceUrl.replace(/\/?$/, '/') + sourceDirectory.replace('^/?/', ''); sourceUrl.replace(/\/?$/, '/') +
'tree/master/' +
sourceDirectory.replace('^/?/', '');
} }
references.push(`[source](${fullUrl})`); references.push(`[source](${fullUrl})`);
} }
......
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