You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/clawsweeper-dispatch.yml
+24-6Lines changed: 24 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -81,9 +81,27 @@ jobs:
81
81
repositories: clawsweeper
82
82
permission-contents: write
83
83
84
+
- name: Pre-filter ClawSweeper comment
85
+
id: comment_filter
86
+
if: ${{ github.event_name == 'issue_comment' }}
87
+
env:
88
+
COMMENT_BODY: ${{ github.event.comment.body }}
89
+
run: |
90
+
set -euo pipefail
91
+
if grep -Eiq '(^|[[:space:]])@(clawsweeper|openclaw-clawsweeper)\b(\[bot\])?|(^|[[:space:]])/(clawsweeper|review|autoclose|auto([[:space:]]+|-)?merge)\b' <<< "$COMMENT_BODY"; then
if ! grep -Eiq '(^|[[:space:]])@(clawsweeper|openclaw-clawsweeper)\b(\[bot\])?|(^|[[:space:]])/(clawsweeper|review|automerge|autoclose)\b' "$body_file"; then
236
-
echo "No ClawSweeper command found in comment."
237
-
exit 0
238
-
fi
239
257
if [ -n "$TARGET_TOKEN" ]; then
240
258
err="$(mktemp)"
241
259
if GH_TOKEN="$TARGET_TOKEN" gh_api_with_retry -X POST \
0 commit comments