From 0761ef378a10d65d02761497c7ff9f148af3c535 Mon Sep 17 00:00:00 2001 From: Pierre Vanduynslager Date: Tue, 5 Dec 2017 09:51:15 -0500 Subject: [PATCH] style: update to prettier@1.9.0 --- lib/get-commits.js | 12 +++--------- test/integration.test.js | 4 +--- 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/lib/get-commits.js b/lib/get-commits.js index 5f1e3425..41a94921 100644 --- a/lib/get-commits.js +++ b/lib/get-commits.js @@ -84,24 +84,18 @@ function noGitHeadMessage(branch, version) { This means semantic-release can not extract the commits between now and then. This is usually caused by releasing from outside the repository directory or with innaccessible git metadata. -You can recover from this error by creating a tag for the version "${ - version - }" on the commit corresponding to this release: +You can recover from this error by creating a tag for the version "${version}" on the commit corresponding to this release: $ git tag -f v${version} $ git push -f --tags origin ${branch} `; } function notInHistoryMessage(gitHead, branch, version) { - return `The commit the last release of this package was derived from is not in the direct history of the "${ - branch - }" branch. + return `The commit the last release of this package was derived from is not in the direct history of the "${branch}" branch. This means semantic-release can not extract the commits between now and then. This is usually caused by force pushing, releasing from an unrelated branch, or using an already existing package name. -You can recover from this error by restoring the commit "${gitHead}" or by creating a tag for the version "${ - version - }" on the commit corresponding to this release: +You can recover from this error by restoring the commit "${gitHead}" or by creating a tag for the version "${version}" on the commit corresponding to this release: $ git tag -f v${version || ''} $ git push -f --tags origin ${branch} `; diff --git a/test/integration.test.js b/test/integration.test.js index 3827583e..61005cdb 100644 --- a/test/integration.test.js +++ b/test/integration.test.js @@ -492,9 +492,7 @@ test.serial('Create a tag as a recovery solution for "ENOTINHISTORY" error', asy t.regex( stderr, new RegExp( - `You can recover from this error by restoring the commit "${head}" or by creating a tag for the version "${ - version - }" on the commit corresponding to this release` + `You can recover from this error by restoring the commit "${head}" or by creating a tag for the version "${version}" on the commit corresponding to this release` ) );