From a0654d1557d230a6b558ba9b4d58b58aa8f60c6b Mon Sep 17 00:00:00 2001 From: Seungpyo Hong Date: Mon, 22 Jun 2026 14:52:18 +0900 Subject: [PATCH] =?UTF-8?q?ci:=20TechEngineBot=20adds=20the=20=F0=9F=91=80?= =?UTF-8?q?=20ack=20for=20/verify=20(via=20passed=20comment=5Fid)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/techapi-verify-comment.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.github/workflows/techapi-verify-comment.yml b/.github/workflows/techapi-verify-comment.yml index b0ae422..f6d16d6 100644 --- a/.github/workflows/techapi-verify-comment.yml +++ b/.github/workflows/techapi-verify-comment.yml @@ -32,7 +32,27 @@ jobs: TECHAPI_PR_NUMBER: ${{ github.event.client_payload.pr_number || inputs.pr_number }} TECHAPI_HEAD_SHA: ${{ github.event.client_payload.head_sha || inputs.head_sha }} REQUESTED_BY: ${{ github.event.client_payload.requested_by || github.actor }} + TECHAPI_COMMENT_ID: ${{ github.event.client_payload.comment_id }} steps: + # Acknowledge the /verify command as TechEngineBot (the bot holds the token; + # the relay side must not react, or it looks like the requester self-reacting). + - name: Acknowledge command (TechEngineBot 👀) + if: env.TECHAPI_COMMENT_TOKEN != '' && env.TECHAPI_COMMENT_ID != '' + uses: actions/github-script@v7 + with: + github-token: ${{ secrets.TECHENGINEBOT_TOKEN || secrets.TECHAPI_TOKEN }} + script: | + const comment_id = Number(process.env.TECHAPI_COMMENT_ID); + if (comment_id) { + try { + await github.rest.reactions.createForIssueComment({ + owner: 'GetTechAPI', repo: 'TechAPI', comment_id, content: 'eyes', + }); + } catch (e) { core.info(`reaction skipped: ${e.message}`); } + } + env: + TECHAPI_COMMENT_ID: ${{ github.event.client_payload.comment_id }} + - name: Checkout TechAPI PR head uses: actions/checkout@v4 with: