Skip to content

Commit fb1f43f

Browse files
committed
refactor: rename parent release
1 parent d9cf304 commit fb1f43f

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

lib/package/release.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ export default class Publish {
9292
return result( [ 500, "Unable to create release from the current branch" ] );
9393
}
9494

95-
// previous release commit must be a branch head for the previous branch
95+
// parent release commit must be a branch head for the parent release branch
9696
if ( this.#parentRelease ) {
9797
res = await this.#pkg.git.getCommit( { "commitRef": this.#parentRelease.versionString } );
9898
if ( !res.ok ) return res;
@@ -173,7 +173,7 @@ export default class Publish {
173173
console.log();
174174

175175
console.log( `New version: ${ ansi.underline( this.#newRelease.versionString ) }, tags: ${ this.#createTagsText() || "-" }` );
176-
console.log( `Previous version: ${ this.#parentRelease?.versionString || "-" }` );
176+
console.log( `Parent version: ${ this.#parentRelease?.versionString || "-" }` );
177177

178178
if ( this.#isMajorRelease ) {
179179
console.log( `New release branch "${ this.#newReleaseBranch }" will be created` );
@@ -190,14 +190,14 @@ export default class Publish {
190190

191191
// confirm no changes
192192
if ( !this.#changelog.hasChanges ) {
193-
res = await confirm( "No changes since the previous release.\nContinue the release process?", [ "yes", "[no]" ] );
193+
res = await confirm( "No changes since the parent release.\nContinue the release process?", [ "yes", "[no]" ] );
194194

195195
if ( res !== "yes" ) return result( [ 400, "Terminated" ] );
196196
}
197197

198198
// confirm no notable changes
199199
else if ( !this.#yes && !this.#changelog.hasNotableChanges ) {
200-
res = await confirm( "No notable changes since the previous release.\nContinue the release process?", [ "yes", "[no]" ] );
200+
res = await confirm( "No notable changes since the parent release.\nContinue the release process?", [ "yes", "[no]" ] );
201201

202202
if ( res !== "yes" ) return result( [ 400, "Terminated" ] );
203203
}
@@ -228,7 +228,7 @@ export default class Publish {
228228
// prepare release branch
229229
if ( this.#originalBranch ) {
230230

231-
// merge the previous release branch with the original branch
231+
// merge the original branch to the parent release branch
232232
if ( this.#parentRelease ) {
233233
res = await this.#execGitCommand( `Switching to the branch "${ this.#parentReleaseBranch }"`, [ "switch", this.#parentReleaseBranch ], { "repeatOnError": false } );
234234
if ( !res.ok ) return res;
@@ -251,7 +251,7 @@ export default class Publish {
251251
res = await this.#execGitCommand( `Creating and switching to the new release branch "${ this.#newReleaseBranch }"`, [ "switch", "--create", this.#newReleaseBranch ], { "repeatOnError": false } );
252252
if ( !res.ok ) return res;
253253

254-
// move previous release branch head
254+
// move parent release branch head
255255
if ( this.#parentRelease ) {
256256
res = await this.#execGitCommand(
257257
`Moving branch head "${ this.#parentReleaseBranch }" to the release "${ this.#parentRelease.versionString }"`,

0 commit comments

Comments
 (0)