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:
parent
d75e26f10e
commit
934d15fdb6
1 changed files with 4 additions and 0 deletions
|
@ -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}`;
|
||||
|
||||
|
|
Loading…
Reference in a new issue