Skip to content

Commit 5bdf9d3

Browse files
updated one liner slackbot notifier messages
1 parent 8d95fbd commit 5bdf9d3

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

packages/notifier-bot/convex/polling.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -229,10 +229,12 @@ export const checkForUpdates = internalAction({
229229
if (batch.length > 0) batches.push(batch);
230230

231231
let allBatchesSent = true;
232+
const header =
233+
updates.length === 1
234+
? `📦 *${pendingByLine.get(updates[0])?.name ?? 'package'} update*`
235+
: `📦 *${updates.length} npm package updates*`;
232236
for (const batchLines of batches) {
233-
const text =
234-
`📦 *${updates.length} npm package update${updates.length === 1 ? '' : 's'}*\n\n` +
235-
batchLines.join('\n');
237+
const text = `${header}\n\n` + batchLines.join('\n');
236238
let messageTs: string | undefined;
237239
try {
238240
({ ts: messageTs } = await chatPostMessage(

0 commit comments

Comments
 (0)