From 59cfc8daada5c66458af575d2c715e005d3feea0 Mon Sep 17 00:00:00 2001 From: Seungpyo Hong Date: Mon, 22 Jun 2026 14:52:13 +0900 Subject: [PATCH] ci(verify-command): don't self-react; pass comment_id so the bot acks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The relay runs under a human PAT, so reacting 👀 here looks like the requester reacting to themselves. Drop it and pass comment_id to TechEngine, which adds the reaction as TechEngineBot. Refs #1 --- .github/workflows/verify-command.yml | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/.github/workflows/verify-command.yml b/.github/workflows/verify-command.yml index 057179eb410..2b0b14d51d7 100644 --- a/.github/workflows/verify-command.yml +++ b/.github/workflows/verify-command.yml @@ -38,14 +38,10 @@ jobs: script: | const { owner, repo } = context.repo; const issue_number = context.issue.number; - // 👀 reaction so the requester sees the command was picked up. - try { - await github.rest.reactions.createForIssueComment({ - owner, repo, comment_id: context.payload.comment.id, content: 'eyes', - }); - } catch (e) { - core.info(`reaction skipped: ${e.message}`); - } + // No reaction here: this step runs under the relay token (a human PAT), + // so reacting would look like the requester reacting to themselves. + // The 👀 acknowledgement is added by TechEngineBot on the engine side + // (it holds the bot token); we just pass the comment id through. const pr = await github.rest.pulls.get({ owner, repo, pull_number: issue_number }); await github.rest.repos.createDispatchEvent({ owner: 'GetTechAPI', @@ -54,6 +50,7 @@ jobs: client_payload: { pr_number: String(issue_number), head_sha: pr.data.head.sha, + comment_id: context.payload.comment.id, requested_by: context.payload.comment.user.login, }, });