From 608171766fe7250339f8f15b25460765d3e80730 Mon Sep 17 00:00:00 2001 From: limenglin Date: Mon, 18 May 2026 11:50:02 +0800 Subject: [PATCH] fix(issue-feed): correct IssueTriage bot uid case and add mention.uids MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Fix uid from lowercase 27pmzxx8nad78c9d01e_bot to mixed-case 27pmzxX8NAD78c9d01e_bot (matches robot_id from registerBot API) - Add mention.uids field to send() so WuKongIM delivers proper @mention notification to IssueTriage; previously the field was absent and the bot relied on content-text fallback parsing - Both issues traced to GitHub Actions Python script bypassing the OpenClaw adapter (actions.js), using the framework-canonicalized (lowercased) accountId instead of the actual robot_id Co-authored-by: Octo助理-小明 <27oa0iEYms60b3f1076_bot> Co-authored-by: IssueTriage <27pmzxX8NAD78c9d01e_bot> --- .github/workflows/octo-issue-feed.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/octo-issue-feed.yml b/.github/workflows/octo-issue-feed.yml index b4a9f5d..9e129cf 100644 --- a/.github/workflows/octo-issue-feed.yml +++ b/.github/workflows/octo-issue-feed.yml @@ -128,11 +128,14 @@ jobs: failed = [] - def send(group_id, message): + def send(group_id, message, mention_uids=None): + payload = {'type': 1, 'content': message} + if mention_uids: + payload['mention'] = {'uids': mention_uids} body = json.dumps({ 'channel_id': group_id, 'channel_type': 2, - 'payload': {'type': 1, 'content': message}, + 'payload': payload, }).encode() last_err = None for attempt in range(1, 4): @@ -174,10 +177,11 @@ jobs: if action == 'opened': # repo is already validated by require_repo_name; safe to interpolate into URL triage_msg = ( - '@[27pmzxx8nad78c9d01e_bot:Octo 助理-IssueTriage] [TRIAGE] ' + '@[27pmzxX8NAD78c9d01e_bot:Octo 助理-IssueTriage] [TRIAGE] ' f'https://github.com/Mininglamp-OSS/{repo}/issues/{num}' ) - send('151a45970e1546afa9e947ac36a5c4e5', triage_msg) + send('151a45970e1546afa9e947ac36a5c4e5', triage_msg, + mention_uids=['27pmzxX8NAD78c9d01e_bot']) if failed: sys.exit(1)