Merge pull request #1161 from mikepenz/fix/loading_from_cache_fails

Fix problem using cached data from a previous run
This commit is contained in:
Mike Penz
2023-07-12 21:21:34 +02:00
committed by GitHub
3 changed files with 15 additions and 1 deletions
Generated Vendored
+6
View File
@@ -1021,6 +1021,12 @@ function checkExportedData() {
}
}
const options = cache.options;
if (options.fromTag.date) {
options.fromTag.date = (0, moment_1.default)(options.fromTag.date);
}
if (options.toTag.date) {
options.toTag.date = (0, moment_1.default)(options.toTag.date);
}
return {
diffInfo,
mergedPullRequests,
Generated Vendored
+1 -1
View File
File diff suppressed because one or more lines are too long
+8
View File
@@ -51,6 +51,14 @@ export function checkExportedData(): Data | null {
}
const options: ReleaseNotesOptions = cache.options
if (options.fromTag.date) {
options.fromTag.date = moment(options.fromTag.date)
}
if (options.toTag.date) {
options.toTag.date = moment(options.toTag.date)
}
return {
diffInfo,
mergedPullRequests,