Skip to content

Commit e98a20c

Browse files
committed
fix: urls
1 parent 411ec31 commit e98a20c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/agents/brand-profile/index.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ async function persist(message, context, result) {
8989

9090
// Emit concise summary for observability/Slack step consumers via logs
9191
const version = after?.version;
92+
const isDev = context.env.AWS_ENV === 'dev';
9293
const summary = changed
9394
? `:white_check_mark: Brand profile updated to v${version} for ${baseURL}.`
9495
: `:information_source: Brand profile already up to date (v${version}) for ${baseURL}.`;
@@ -137,14 +138,14 @@ async function persist(message, context, result) {
137138
{ type: 'mrkdwn', text: `*Site ID:* ${siteId}` },
138139
];
139140
if (version) {
140-
contextElements.push({ type: 'mrkdwn', text: `*Version:* ${version}` });
141+
contextElements.push({ type: 'mrkdwn', text: `\n*Version:* ${version}` });
141142
}
142143
if (afterHash) {
143-
contextElements.push({ type: 'mrkdwn', text: `*Hash:* \`${afterHash}\`` });
144+
contextElements.push({ type: 'mrkdwn', text: `\n*Hash:* \`${afterHash}\`` });
144145
}
145146
contextElements.push({
146147
type: 'mrkdwn',
147-
text: `\`GET /api/sites/${siteId}/brand-profile\``,
148+
text: `\nhttps://spacecat.experiencecloud.live/api/${isDev ? 'ci' : 'v1'}/sites/${siteId}/brand-profile`,
148149
});
149150
blocks.push({
150151
type: 'context',

0 commit comments

Comments
 (0)