You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -106,10 +106,10 @@ export default class GitChangelog {
106
106
}
107
107
}
108
108
109
-
createChangesList({currentRelease, text =true, ansi =true}={}){
110
-
currentRelease||=this.#currentRelease;
109
+
createChangesList({endRelease, text =true, ansi =true}={}){
110
+
endRelease||=this.#endRelease;
111
111
112
-
constlines=[this.#createHeader(currentRelease)];
112
+
constlines=[this.#createHeader(endRelease)];
113
113
114
114
if(this.hasChanges){
115
115
for(constgroupofthis.#changesGroups ){
@@ -264,14 +264,14 @@ export default class GitChangelog {
264
264
);
265
265
}
266
266
267
-
#createHeader (currentRelease){
268
-
if(this.#parentRelease &¤tRelease){
269
-
return`**Changes between the releases: \`${this.#parentRelease.versionString}\` (${this.#parentRelease.changelogDate}) ... \`${currentRelease.versionString}\` (${currentRelease.changelogDate})**`;
267
+
#createHeader (endRelease){
268
+
if(this.#parentRelease &&endRelease){
269
+
return`**Changes between the releases: \`${this.#parentRelease.versionString}\` (${this.#parentRelease.changelogDate}) ... \`${endRelease.versionString}\` (${endRelease.changelogDate})**`;
270
270
}
271
-
elseif(!this.#parentRelease &¤tRelease){
272
-
return`**Changes for the release: \`${currentRelease.versionString}\` (${currentRelease.changelogDate})**`;
271
+
elseif(!this.#parentRelease &&endRelease){
272
+
return`**Changes for the release: \`${endRelease.versionString}\` (${endRelease.changelogDate})**`;
0 commit comments