Merge pull request #1170 from mikepenz/fix/totag_fromtag_defined
Fix problem of empty `toTag` and `fromTag` name after loading from cache
This commit is contained in:
+2
-2
@@ -361,11 +361,11 @@ class ReleaseNotesBuilder {
|
|||||||
const orgOptions = releaseNotesData.options;
|
const orgOptions = releaseNotesData.options;
|
||||||
// merge fromTag info with provided info || otherwise use cached info
|
// merge fromTag info with provided info || otherwise use cached info
|
||||||
const fromTag = orgOptions.fromTag;
|
const fromTag = orgOptions.fromTag;
|
||||||
if (this.fromTag != null) {
|
if (this.fromTag) {
|
||||||
fromTag.name = this.fromTag;
|
fromTag.name = this.fromTag;
|
||||||
}
|
}
|
||||||
const toTag = orgOptions.toTag;
|
const toTag = orgOptions.toTag;
|
||||||
if (this.toTag != null) {
|
if (this.toTag) {
|
||||||
toTag.name = this.toTag;
|
toTag.name = this.toTag;
|
||||||
}
|
}
|
||||||
// merge provided values with previous options (prefer provided)
|
// merge provided values with previous options (prefer provided)
|
||||||
|
|||||||
+1
-1
File diff suppressed because one or more lines are too long
@@ -130,11 +130,11 @@ export class ReleaseNotesBuilder {
|
|||||||
|
|
||||||
// merge fromTag info with provided info || otherwise use cached info
|
// merge fromTag info with provided info || otherwise use cached info
|
||||||
const fromTag: TagInfo = orgOptions.fromTag
|
const fromTag: TagInfo = orgOptions.fromTag
|
||||||
if (this.fromTag != null) {
|
if (this.fromTag) {
|
||||||
fromTag.name = this.fromTag
|
fromTag.name = this.fromTag
|
||||||
}
|
}
|
||||||
const toTag: TagInfo = orgOptions.toTag
|
const toTag: TagInfo = orgOptions.toTag
|
||||||
if (this.toTag != null) {
|
if (this.toTag) {
|
||||||
toTag.name = this.toTag
|
toTag.name = this.toTag
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user