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

fix(cache): lazy fetch tags for changelog

parent af548695
No related branches found
No related tags found
No related merge requests found
...@@ -95,9 +95,12 @@ async function getChangeLogJSON({ ...@@ -95,9 +95,12 @@ async function getChangeLogJSON({
return null; return null;
} }
const tags = await getTags(config.endpoint, versionScheme, repository); let tags;
function getRef(release) { async function getRef(release) {
if (!tags) {
tags = await getTags(config.endpoint, versionScheme, repository);
}
const tagName = tags.find(tag => equals(tag, release.version)); const tagName = tags.find(tag => equals(tag, release.version));
if (tagName) { if (tagName) {
return tagName; return tagName;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment