in src/pr-comment.ts [41:63]
function getCommentMessage(config: PullRequestCommentConfig): string {
const { buildNumber, commentingStage, projectName } = config;
const deployUrl = getDeployUrl(config).toString();
const previewUrl = getPreviewUrl(config).toString();
const whatsOnUrl = getWhatsOnUrl(config).toString();
const mainMessage = `[Deploy build ${buildNumber} of \`${projectName}\` to ${commentingStage}](${deployUrl})`;
return [
`### ${mainMessage}`,
'<details>',
'<summary>All deployment options</summary>',
'',
`- ${mainMessage}`,
`- [Deploy parts of build ${buildNumber} to ${commentingStage} by previewing it first](${previewUrl})`,
`- [What's on ${commentingStage} right now?](${whatsOnUrl})`,
'</details>',
'',
'---',
'_From [guardian/actions-riff-raff](https://github.com/guardian/actions-riff-raff)._',
marker(projectName),
].join('\n');
}