From df23d396f50f1b198966bddc3e1eedbc1952a672 Mon Sep 17 00:00:00 2001 From: Den Delimarsky Date: Wed, 11 Mar 2026 20:39:44 +0000 Subject: [PATCH] =?UTF-8?q?Add=20early=20=F0=9F=91=80=20ack=20reaction=20f?= =?UTF-8?q?or=20/stageblog?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit listFiles pagination + workflow dispatch can take a few seconds. Without an early ack, the commenter gets no feedback until the outcome reaction lands. 👀 confirms the command was recognized and authorized while the heavier work runs. --- slash-commands/main.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/slash-commands/main.js b/slash-commands/main.js index 19a1ac0..2b66f77 100644 --- a/slash-commands/main.js +++ b/slash-commands/main.js @@ -250,6 +250,10 @@ module.exports = async ({ github, context, core }) => { // cancel is meaningless here — just ignore silently if (cancel) return setResult('noop', actor); + // Ack early — listFiles pagination + workflow dispatch can take a few + // seconds and the commenter otherwise gets no feedback until then. + await react(commentId, 'eyes'); + // Gate: PR must touch blog paths const blogRegexes = process.env.STAGEBLOG_PATHS .split(',').map(s => s.trim()).filter(Boolean).map(patternToRegex);