From 6964e31af527906648f25118b312d8d9eea34626 Mon Sep 17 00:00:00 2001 From: Rena Wolford Date: Thu, 9 Apr 2020 08:39:17 -0700 Subject: [PATCH] fix: LTS release commit should contain codename (#401) --- lib/prepare_release.js | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/lib/prepare_release.js b/lib/prepare_release.js index 4fdd18e..2342363 100644 --- a/lib/prepare_release.js +++ b/lib/prepare_release.js @@ -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) {