Skip to content

Commit bbdbfad

Browse files
committed
docs: align ClawSweeper comment prefilter
1 parent e833374 commit bbdbfad

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

docs/target-dispatcher.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ jobs:
9393
COMMENT_BODY: ${{ github.event.comment.body }}
9494
run: |
9595
set -euo pipefail
96-
if grep -Eiq '(^|[[:space:]])@(clawsweeper|openclaw-clawsweeper)\b(\[bot\])?|(^|[[:space:]])/(clawsweeper|review|re-review|rerun[ -]?review|status|explain|fix|build|implement|create[ -]?pr|fix[ -]?issue|autofix|auto[ -]?fix|automerge|auto[ -]?merge|approve|stop|autoclose)\b' <<< "$COMMENT_BODY"; then
96+
if grep -Eiq '(^|[[:space:]])@(clawsweeper|openclaw-clawsweeper)\b(\[bot\])?|(^|[[:space:]])/(clawsweeper|review|autoclose|auto([[:space:]]+|-)?merge)\b' <<< "$COMMENT_BODY"; then
9797
echo "is_command=true" >> "$GITHUB_OUTPUT"
9898
else
9999
echo "is_command=false" >> "$GITHUB_OUTPUT"
@@ -292,8 +292,11 @@ The job mints one short-lived `clawsweeper` App token scoped to
292292
`clawsweeper_comment` `repository_dispatch`. For comments, the
293293
`Pre-filter ClawSweeper comment` step runs before the target write token is
294294
minted, so ordinary comments consume neither a target installation token nor a
295-
dispatch. Do not use a PAT or dispatch the same comment through both the exact
296-
router and a second spam/generic workflow.
295+
dispatch. The prefilter is only an ingress guard: `/clawsweeper` may carry any
296+
supported subcommand, while `/review`, `/autoclose`, and `/auto-merge` (with
297+
spaces or tabs allowed between `auto` and `merge`) are the standalone aliases.
298+
The router remains authoritative. Do not use a PAT or dispatch the same comment
299+
through both the exact router and a second spam/generic workflow.
297300

298301
To verify a target installation, open a pull request or issue and confirm one
299302
`ClawSweeper Dispatch` run. Add a maintainer comment containing `@clawsweeper`

0 commit comments

Comments
 (0)