Deploy script: remove double quotes from commit message log (#5285)

* Remove double quotes from commit message log
* Add replace to tagDeployment as well
This commit is contained in:
Sarah Norris 2022-01-10 14:43:31 +00:00 committed by GitHub
parent d75e26f10e
commit 934d15fdb6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -659,6 +659,8 @@ async function buildPhabricatorCommitMessageSince(hash){
let projectVersion = await executeCommand(`node -p "require('./package.json').version"`);
let logs = await executeCommand(`git log --reverse --pretty=format:%s ${hash}..HEAD`);
// Remove any double quotes from commit messages
logs.replace(/"/g, '');
return `Deploy Themes ${projectVersion} to wpcom
Summary:
@ -765,6 +767,8 @@ async function tagDeployment(options={}) {
}
let projectVersion = await executeCommand(`node -p "require('./package.json').version"`);
let logs = await executeCommand(`git log --reverse --pretty=format:%s ${hash}..HEAD`);
// Remove any double quotes from commit messages
logs.replace(/"/g, '');
let tag = `v${projectVersion}`;
let message = `Deploy Themes ${tag} to wpcom. \n\n${logs} \n\n${workInTheOpenPhabricatorUrl}`;