We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8d95fbd commit 5bdf9d3Copy full SHA for 5bdf9d3
1 file changed
packages/notifier-bot/convex/polling.ts
@@ -229,10 +229,12 @@ export const checkForUpdates = internalAction({
229
if (batch.length > 0) batches.push(batch);
230
231
let allBatchesSent = true;
232
+ const header =
233
+ updates.length === 1
234
+ ? `📦 *${pendingByLine.get(updates[0])?.name ?? 'package'} update*`
235
+ : `📦 *${updates.length} npm package updates*`;
236
for (const batchLines of batches) {
- const text =
- `📦 *${updates.length} npm package update${updates.length === 1 ? '' : 's'}*\n\n` +
- batchLines.join('\n');
237
+ const text = `${header}\n\n` + batchLines.join('\n');
238
let messageTs: string | undefined;
239
try {
240
({ ts: messageTs } = await chatPostMessage(
0 commit comments