惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

S
SegmentFault 最新的问题
Google DeepMind News
Google DeepMind News
G
Google Developers Blog
Martin Fowler
Martin Fowler
MongoDB | Blog
MongoDB | Blog
月光博客
月光博客
Jina AI
Jina AI
宝玉的分享
宝玉的分享
人人都是产品经理
人人都是产品经理
D
DataBreaches.Net
V
V2EX
WordPress大学
WordPress大学
T
The Blog of Author Tim Ferriss
Last Week in AI
Last Week in AI
B
Blog
博客园 - 叶小钗
小众软件
小众软件
Stack Overflow Blog
Stack Overflow Blog
P
Proofpoint News Feed
A
About on SuperTechFans
J
Java Code Geeks
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Y
Y Combinator Blog
Microsoft Security Blog
Microsoft Security Blog

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
fix(ci): clear Mantis command reactions (#83194) · opencl...
Takhoffman · 2026-05-18 · via Recent Commits to openclaw:main

@@ -3,7 +3,7 @@ name: Mantis Telegram Desktop Proof

33

on:

44

issue_comment:

55

types: [created]

6-

pull_request_target:

6+

pull_request_target: # zizmor: ignore[dangerous-triggers] maintainer-owned Mantis label trigger; trusted base workflow validates refs before checkout/use

77

types: [labeled]

88

workflow_dispatch:

99

inputs:

@@ -120,6 +120,7 @@ jobs:

120120

publish_run_id: ${{ steps.resolve.outputs.publish_run_id }}

121121

pr_number: ${{ steps.resolve.outputs.pr_number }}

122122

request_source: ${{ steps.resolve.outputs.request_source }}

123+

should_run: ${{ steps.resolve.outputs.should_run }}

123124

steps:

124125

- name: Resolve refs and target PR

125126

id: resolve

@@ -145,24 +146,52 @@ jobs:

145146

return;

146147

}

147148148-

const { owner, repo } = context.repo;

149-

const { data: pr } = await github.rest.pulls.get({

150-

owner,

151-

repo,

152-

pull_number: Number(prNumber),

153-

});

154149

const body =

155150

eventName === "workflow_dispatch"

156151

? inputs.instructions || ""

157152

: eventName === "issue_comment"

158153

? context.payload.comment?.body || ""

159154

: "";

155+

if (eventName === "issue_comment") {

156+

const normalized = body.toLowerCase();

157+

const requestedDesktopProof =

158+

(normalized.includes("@openclaw-mantis") || normalized.includes("/openclaw-mantis")) &&

159+

(normalized.includes("desktop proof") ||

160+

normalized.includes("desktop-proof") ||

161+

normalized.includes("telegram desktop") ||

162+

normalized.includes("native telegram") ||

163+

normalized.includes("visible proof") ||

164+

normalized.includes("visible-proof") ||

165+

normalized.includes("telegram-visible-proof"));

166+

if (!requestedDesktopProof) {

167+

core.notice("Comment mentioned Mantis but did not request Telegram desktop proof.");

168+

setOutput("should_run", "false");

169+

setOutput("baseline_ref", "");

170+

setOutput("candidate_ref", "");

171+

setOutput("pr_number", "");

172+

setOutput("instructions", "");

173+

setOutput("crabbox_provider", "");

174+

setOutput("lease_id", "");

175+

setOutput("publish_artifact_name", "");

176+

setOutput("publish_run_id", "");

177+

setOutput("request_source", "unsupported_issue_comment");

178+

return;

179+

}

180+

}

181+182+

const { owner, repo } = context.repo;

183+

const { data: pr } = await github.rest.pulls.get({

184+

owner,

185+

repo,

186+

pull_number: Number(prNumber),

187+

});

160188

const provider = inputs.crabbox_provider || "aws";

161189

if (!["aws", "hetzner"].includes(provider)) {

162190

core.setFailed(`Unsupported Crabbox provider for Mantis Telegram desktop proof: ${provider}`);

163191

return;

164192

}

165193194+

setOutput("should_run", "true");

166195

setOutput("baseline_ref", pr.base.sha);

167196

setOutput("candidate_ref", pr.head.sha);

168197

setOutput("pr_number", String(pr.number));

@@ -185,7 +214,7 @@ jobs:

185214

validate_refs:

186215

name: Validate selected refs

187216

needs: resolve_request

188-

if: needs.resolve_request.outputs.publish_artifact_name == ''

217+

if: needs.resolve_request.outputs.should_run == 'true' && needs.resolve_request.outputs.publish_artifact_name == ''

189218

runs-on: ubuntu-24.04

190219

outputs:

191220

baseline_revision: ${{ steps.validate.outputs.baseline_revision }}

@@ -264,7 +293,7 @@ jobs:

264293

run_telegram_desktop_proof:

265294

name: Run agentic native Telegram proof

266295

needs: [resolve_request, validate_refs]

267-

if: needs.resolve_request.outputs.publish_artifact_name == ''

296+

if: needs.resolve_request.outputs.should_run == 'true' && needs.resolve_request.outputs.publish_artifact_name == ''

268297

runs-on: blacksmith-16vcpu-ubuntu-2404

269298

timeout-minutes: 360

270299

environment: qa-live-shared

@@ -513,7 +542,7 @@ jobs:

513542

publish_existing_telegram_desktop_proof:

514543

name: Publish existing native Telegram proof

515544

needs: resolve_request

516-

if: needs.resolve_request.outputs.publish_artifact_name != ''

545+

if: needs.resolve_request.outputs.should_run == 'true' && needs.resolve_request.outputs.publish_artifact_name != ''

517546

runs-on: ubuntu-24.04

518547

environment: qa-live-shared

519548

steps:

@@ -598,3 +627,44 @@ jobs:

598627

--artifact-url "$PUBLISH_ARTIFACT_URL" \

599628

--run-url "https://github.com/${GITHUB_REPOSITORY}/actions/runs/${PUBLISH_RUN_ID}" \

600629

--request-source "$REQUEST_SOURCE"

630+631+

clear_issue_comment_reaction:

632+

name: Clear Mantis command reaction

633+

needs: [resolve_request, validate_refs, run_telegram_desktop_proof]

634+

if: ${{ always() && github.event_name == 'issue_comment' && needs.resolve_request.outputs.request_source == 'issue_comment' }}

635+

runs-on: ubuntu-24.04

636+

permissions:

637+

issues: write

638+

steps:

639+

- name: Remove workflow eyes reaction

640+

uses: actions/github-script@v8

641+

with:

642+

script: |

643+

const { owner, repo } = context.repo;

644+

const commentId = context.payload.comment?.id;

645+

if (!commentId) {

646+

core.info("No issue comment id found; skipping reaction cleanup.");

647+

return;

648+

}

649+650+

const reactions = await github.paginate(github.rest.reactions.listForIssueComment, {

651+

owner,

652+

repo,

653+

comment_id: commentId,

654+

per_page: 100,

655+

});

656+

const eyes = reactions.filter(

657+

(reaction) => reaction.content === "eyes" && reaction.user?.login === "github-actions[bot]",

658+

);

659+

for (const reaction of eyes) {

660+

await github.rest.reactions.deleteForIssueComment({

661+

owner,

662+

repo,

663+

comment_id: commentId,

664+

reaction_id: reaction.id,

665+

});

666+

core.info(`Removed eyes reaction ${reaction.id} from comment ${commentId}.`);

667+

}

668+

if (eyes.length === 0) {

669+

core.info(`No workflow eyes reaction found on comment ${commentId}.`);

670+

}