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
console.log(`New release branch "${this.#newReleaseBranch }" will be created`);
@@ -228,18 +228,18 @@ export default class Publish {
228
228
// prepare release branch
229
229
if(this.#originalBranch ){
230
230
231
-
// merge the original branch to the parent release branch
232
-
if(this.#parentRelease){
233
-
res=awaitthis.#execGitCommand(`Switching to the branch "${this.#parentReleaseBranch}"`,["switch",this.#parentReleaseBranch],{"repeatOnError": false});
231
+
// merge the original branch to the previous release branch
232
+
if(this.#previousRelease){
233
+
res=awaitthis.#execGitCommand(`Switching to the branch "${this.#previousReleaseBranch}"`,["switch",this.#previousReleaseBranch],{"repeatOnError": false});
234
234
if(!res.ok)returnres;
235
235
236
-
res=awaitthis.#execGitCommand(`Merging the branch "${this.#originalBranch }" to the branch "${this.#parentReleaseBranch}"`,["merge","--no-edit","--quiet","--ff-only",this.#originalBranch ],{"repeatOnError": false});
236
+
res=awaitthis.#execGitCommand(`Merging the branch "${this.#originalBranch }" to the branch "${this.#previousReleaseBranch}"`,["merge","--no-edit","--quiet","--ff-only",this.#originalBranch ],{"repeatOnError": false});
237
237
if(!res.ok)returnres;
238
238
}
239
239
240
240
// create release branch, if HEAD has no release branch
res=awaitthis.#execGitCommand(`Creating and switching to the branch "${this.#parentReleaseBranch}"`,["switch","--create",this.#parentReleaseBranch],{"repeatOnError": false});
res=awaitthis.#execGitCommand(`Creating and switching to the branch "${this.#previousReleaseBranch}"`,["switch","--create",this.#previousReleaseBranch],{"repeatOnError": false});
243
243
if(!res.ok)returnres;
244
244
}
245
245
}
@@ -251,17 +251,17 @@ export default class Publish {
251
251
res=awaitthis.#execGitCommand(`Creating and switching to the new release branch "${this.#newReleaseBranch }"`,["switch","--create",this.#newReleaseBranch ],{"repeatOnError": false});
252
252
if(!res.ok)returnres;
253
253
254
-
// move parent release branch head
255
-
if(this.#parentRelease){
254
+
// move previous release branch head
255
+
if(this.#previousRelease){
256
256
res=awaitthis.#execGitCommand(
257
-
`Moving branch head "${this.#parentReleaseBranch}" to the release "${this.#parentRelease.versionString}"`,
257
+
`Moving branch head "${this.#previousReleaseBranch}" to the release "${this.#previousRelease.versionString}"`,
258
258
[
259
259
260
260
//
261
261
"branch",
262
262
"--force",
263
-
this.#parentReleaseBranch,
264
-
this.#parentRelease.versionString,
263
+
this.#previousReleaseBranch,
264
+
this.#previousRelease.versionString,
265
265
],
266
266
{"repeatOnError": false}
267
267
);
@@ -338,7 +338,7 @@ export default class Publish {
338
338
339
339
//
340
340
this.#newReleaseBranch,
341
-
this.#parentReleaseBranch,
341
+
this.#previousReleaseBranch,
342
342
this.#newRelease.versionString,
343
343
this.#latestTag,
344
344
this.#nextTag,
@@ -420,7 +420,7 @@ export default class Publish {
420
420
asyncgetChangelog({ force }={}){
421
421
if(force||!this.#changelog ){
422
422
this.#changelog =null;
423
-
this.#parentRelease=null;
423
+
this.#previousRelease=null;
424
424
425
425
// get changes
426
426
constres=awaitthis.#pkg.git.getChangelog({
@@ -432,7 +432,7 @@ export default class Publish {
0 commit comments