Add early 👀 ack reaction for /stageblog
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.
This commit is contained in:
parent
e2fbc602d7
commit
df23d396f5
1 changed files with 4 additions and 0 deletions
|
|
@ -250,6 +250,10 @@ module.exports = async ({ github, context, core }) => {
|
||||||
// cancel is meaningless here — just ignore silently
|
// cancel is meaningless here — just ignore silently
|
||||||
if (cancel) return setResult('noop', actor);
|
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
|
// Gate: PR must touch blog paths
|
||||||
const blogRegexes = process.env.STAGEBLOG_PATHS
|
const blogRegexes = process.env.STAGEBLOG_PATHS
|
||||||
.split(',').map(s => s.trim()).filter(Boolean).map(patternToRegex);
|
.split(',').map(s => s.trim()).filter(Boolean).map(patternToRegex);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue