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:
+6
@@ -1021,6 +1021,12 @@ function checkExportedData() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
const options = cache.options;
|
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 {
|
return {
|
||||||
diffInfo,
|
diffInfo,
|
||||||
mergedPullRequests,
|
mergedPullRequests,
|
||||||
|
|||||||
+1
-1
File diff suppressed because one or more lines are too long
@@ -51,6 +51,14 @@ export function checkExportedData(): Data | null {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const options: ReleaseNotesOptions = cache.options
|
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 {
|
return {
|
||||||
diffInfo,
|
diffInfo,
|
||||||
mergedPullRequests,
|
mergedPullRequests,
|
||||||
|
|||||||
Reference in New Issue
Block a user