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

refactor(changelog): cacheKey from manager/depName

parent 245e8319
No related branches found
No related tags found
No related merge requests found
...@@ -44,6 +44,7 @@ async function getChangeLogJSON({ ...@@ -44,6 +44,7 @@ async function getChangeLogJSON({
repositoryUrl, repositoryUrl,
releases, releases,
depName, depName,
manager,
}) { }) {
if (repositoryUrl === 'https://github.com/DefinitelyTyped/DefinitelyTyped') { if (repositoryUrl === 'https://github.com/DefinitelyTyped/DefinitelyTyped') {
logger.debug('No release notes for @types'); logger.debug('No release notes for @types');
...@@ -101,7 +102,7 @@ async function getChangeLogJSON({ ...@@ -101,7 +102,7 @@ async function getChangeLogJSON({
const cacheNamespace = 'changelog-github-release'; const cacheNamespace = 'changelog-github-release';
function getCacheKey(prev, next) { function getCacheKey(prev, next) {
return `${repository}:${prev}:${next}`; return `${manager}:${depName}:${prev}:${next}`;
} }
const changelogReleases = []; const changelogReleases = [];
......
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