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
{{ message }}
Repository navigation
Commit d6d6b79
Browse filesBrowse the repository at this point in the historyBrowse files
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 \
|`probeCopilotCliVersion`|`copilot --version` exits 0 with a non-empty version string |`non-zero-exit`, `empty-version`, `spawn-failed`, `spawn-error`, `probe-timeout`|
260
-
|`probeCopilotHomeWritable`|`mkdir -p copilotHome` + write + rm a marker file |`copilothome-not-writable` (with the underlying fs error in `details.rawError`) |
261
-
|`probeCopilotAuthShape`| At least one of `useLoggedInUser`, `gitHubToken`, or `profileId`+`profileVersion`|`no-auth-source`|
262
-
263
-
Each probe accepts a DI seam (`spawnFn`, `fsApi`) so tests do not spawn the
264
-
real Copilot CLI or touch the host fs.
265
-
266
247
## Limitations
267
248
268
249
- The harness only claims the canonical `github-copilot` provider at MVP.
0 commit comments