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

推荐订阅源

雷峰网
雷峰网
WordPress大学
WordPress大学
MyScale Blog
MyScale Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
T
The Blog of Author Tim Ferriss
U
Unit 42
罗磊的独立博客
G
Google Developers Blog
Microsoft Azure Blog
Microsoft Azure Blog
The Cloudflare Blog
aimingoo的专栏
aimingoo的专栏
Vercel News
Vercel News
N
Netflix TechBlog - Medium
H
Hackread – Cybersecurity News, Data Breaches, AI and More
云风的 BLOG
云风的 BLOG
Hugging Face - Blog
Hugging Face - Blog
大猫的无限游戏
大猫的无限游戏
F
Fortinet All Blogs
博客园 - 聂微东
Stack Overflow Blog
Stack Overflow Blog
小众软件
小众软件
博客园 - 【当耐特】
H
Help Net Security
The GitHub Blog
The GitHub 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
ci: route ClawSweeper command comments · openclaw/opencla...
steipete · 2026-05-01 · via Recent Commits to openclaw:main

@@ -3,6 +3,8 @@ name: ClawSweeper Dispatch

33

on:

44

issues:

55

types: [opened, reopened, edited, labeled, unlabeled]

6+

issue_comment:

7+

types: [created, edited]

68

push:

79

branches: [main]

810

pull_request_target: # zizmor: ignore[dangerous-triggers] maintainer-owned external dispatch; no checkout or untrusted PR code execution

@@ -18,7 +20,7 @@ concurrency:

1820

jobs:

1921

dispatch:

2022

runs-on: ubuntu-latest

21-

if: ${{ !(endsWith(github.actor, '[bot]') && (github.event.action == 'labeled' || github.event.action == 'unlabeled')) }}

23+

if: ${{ github.event_name == 'issue_comment' || !(endsWith(github.actor, '[bot]') && (github.event.action == 'labeled' || github.event.action == 'unlabeled')) }}

2224

env:

2325

HAS_CLAWSWEEPER_APP_PRIVATE_KEY: ${{ secrets.CLAWSWEEPER_APP_PRIVATE_KEY != '' }}

2426

CLAWSWEEPER_APP_CLIENT_ID: Iv23liOECG0slfuhz093

@@ -39,8 +41,20 @@ jobs:

3941

repositories: clawsweeper

4042

permission-contents: write

414344+

- name: Create target comment token

45+

id: target_token

46+

if: ${{ github.event_name == 'issue_comment' && env.HAS_CLAWSWEEPER_APP_PRIVATE_KEY == 'true' }}

47+

uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1

48+

with:

49+

client-id: ${{ env.CLAWSWEEPER_APP_CLIENT_ID }}

50+

private-key: ${{ secrets.CLAWSWEEPER_APP_PRIVATE_KEY }}

51+

owner: ${{ github.repository_owner }}

52+

repositories: ${{ github.event.repository.name }}

53+

permission-issues: write

54+

permission-pull-requests: read

55+4256

- name: Dispatch exact ClawSweeper review

43-

if: ${{ github.event_name != 'push' }}

57+

if: ${{ github.event_name != 'push' && github.event_name != 'issue_comment' }}

4458

env:

4559

GH_TOKEN: ${{ steps.token.outputs.token }}

4660

TARGET_REPO: ${{ github.repository }}

@@ -69,6 +83,60 @@ jobs:

6983

echo "::warning::Skipping ClawSweeper dispatch because the configured credential could not dispatch to openclaw/clawsweeper."

7084

fi

718586+

- name: Acknowledge and dispatch ClawSweeper comment

87+

if: ${{ github.event_name == 'issue_comment' }}

88+

env:

89+

DISPATCH_TOKEN: ${{ steps.token.outputs.token }}

90+

TARGET_TOKEN: ${{ steps.target_token.outputs.token }}

91+

TARGET_REPO: ${{ github.repository }}

92+

ITEM_NUMBER: ${{ github.event.issue.number }}

93+

COMMENT_ID: ${{ github.event.comment.id }}

94+

COMMENT_BODY: ${{ github.event.comment.body }}

95+

SOURCE_ACTION: ${{ github.event.action }}

96+

run: |

97+

set -euo pipefail

98+

if [ -z "$DISPATCH_TOKEN" ]; then

99+

echo "::notice::Skipping ClawSweeper comment dispatch because no ClawSweeper app token is configured."

100+

exit 0

101+

fi

102+

body_file="$RUNNER_TEMP/clawsweeper-comment-body.txt"

103+

printf '%s\n' "$COMMENT_BODY" > "$body_file"

104+

if ! grep -Eiq '(^|[[:space:]])@clawsweeper\b|(^|[[:space:]])/(clawsweeper|review|automerge|autoclose)\b' "$body_file"; then

105+

echo "No ClawSweeper command found in comment."

106+

exit 0

107+

fi

108+

if [ -n "$TARGET_TOKEN" ]; then

109+

err="$(mktemp)"

110+

if GH_TOKEN="$TARGET_TOKEN" gh api -X POST \

111+

-H "Accept: application/vnd.github+json" \

112+

"repos/$TARGET_REPO/issues/comments/$COMMENT_ID/reactions" \

113+

-f content="eyes" 2>"$err" >/dev/null; then

114+

echo "Acknowledged ClawSweeper command comment."

115+

elif grep -qi "HTTP 422\\|already exists" "$err"; then

116+

echo "ClawSweeper command comment already acknowledged."

117+

else

118+

cat "$err" >&2

119+

echo "::warning::Could not acknowledge ClawSweeper command comment."

120+

fi

121+

rm -f "$err"

122+

else

123+

echo "::notice::Skipping ClawSweeper comment acknowledgement because no target token is configured."

124+

fi

125+

payload="$(jq -nc \

126+

--arg target_repo "$TARGET_REPO" \

127+

--argjson item_number "$ITEM_NUMBER" \

128+

--argjson comment_id "$COMMENT_ID" \

129+

--arg source_event "issue_comment" \

130+

--arg source_action "$SOURCE_ACTION" \

131+

'{event_type:"clawsweeper_comment",client_payload:{target_repo:$target_repo,item_number:$item_number,comment_id:$comment_id,source_event:$source_event,source_action:$source_action}}')"

132+

if GH_TOKEN="$DISPATCH_TOKEN" gh api repos/openclaw/clawsweeper/dispatches \

133+

--method POST \

134+

--input - <<< "$payload"; then

135+

echo "Dispatched ClawSweeper comment router."

136+

else

137+

echo "::warning::Skipping ClawSweeper comment dispatch because the configured credential could not dispatch to openclaw/clawsweeper."

138+

fi

139+72140

- name: Dispatch ClawSweeper commit review

73141

if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' && github.event.deleted != true }}

74142

env: