added adrFileLocationUrl for adr file read
Signed-off-by: Deepankumar Loganathan <deepan0433@gmail.com>
This commit is contained in:
@@ -63,15 +63,14 @@ export const getAdrLocationUrl = (
|
||||
throw new Error(`Missing ADR annotation: ${ANNOTATION_ADR_LOCATION}`);
|
||||
}
|
||||
|
||||
let url = getAdrLocationDir(entity)!.replace(/\/$/, '');
|
||||
|
||||
if (adrFilePath) {
|
||||
return scmIntegration.resolveUrl({
|
||||
url: `${getAdrLocationDir(entity)!.replace(/\/$/, '')}/${adrFilePath}`,
|
||||
base: getEntitySourceLocation(entity).target,
|
||||
});
|
||||
url = `${url}/${adrFilePath}`;
|
||||
}
|
||||
|
||||
return scmIntegration.resolveUrl({
|
||||
url: getAdrLocationDir(entity)!,
|
||||
url,
|
||||
base: getEntitySourceLocation(entity).target,
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user