Skip to content

Commit

Permalink
fix: LTS release commit should contain codename (#401)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alicia Lopez committed Apr 9, 2020
1 parent 27acb90 commit 2309ab9
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions lib/prepare_release.js
Original file line number Diff line number Diff line change
Expand Up @@ -358,10 +358,17 @@ class ReleasePreparation {
}

async createReleaseCommit() {
const { cli, isLTS, newVersion, isSecurityRelease, date } = this;
const {
cli,
isLTS,
ltsCodename,
newVersion,
isSecurityRelease,
date
} = this;

const releaseType = isLTS ? 'LTS' : 'Current';
const messageTitle = `${date} Version ${newVersion} (${releaseType})`;
const releaseInfo = isLTS ? `'${ltsCodename}' (LTS)` : '(Current)';
const messageTitle = `${date} Version ${newVersion} ${releaseInfo}`;

const messageBody = [];
if (isSecurityRelease) {
Expand Down

0 comments on commit 2309ab9

Please sign in to comment.