in index.js [259:286]
function buildCommentBody(deploymentCommit, deploymentUrl, deploymentName) {
if (!githubComment) {
return undefined;
}
const prefix = `${buildCommentPrefix(deploymentName)}\n\n`;
const rawGithubComment =
prefix +
(typeof githubComment === 'string' || githubComment instanceof String
? githubComment
: stripIndents`
* ${joinDeploymentUrls(deploymentUrl, aliasDomains)}
* Built with commit ${deploymentCommit}
> Issues? Visit #docs-elastic-dev in Slack
`);
return rawGithubComment
.replace(/\{\{deploymentCommit\}\}/g, deploymentCommit)
.replace(/\{\{deploymentName\}\}/g, deploymentName)
.replace(
/\{\{deploymentUrl\}\}/g,
joinDeploymentUrls(deploymentUrl, aliasDomains),
);
}