@clipboard-health/ai-rules 2.6.2 → 2.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -72,7 +72,7 @@ Spawn a Task subagent with `subagent_type: "general-purpose"` using this prompt:
|
|
|
72
72
|
> 1. **Record Starting Commit**: !`git rev-parse HEAD` (save as `startCommit`)
|
|
73
73
|
> 2. **Commit and Push**: Invoke `core:commit-push-pr` via the Skill tool
|
|
74
74
|
> 3. **Get PR Number**: !`gh pr view --json number --jq '.number'`
|
|
75
|
-
> 4. **Wait for CI**: !`rc=0; timeout 600 gh pr checks --watch || rc=$?; case $rc in 0|1|8|124) ;; *) exit $rc;; esac` (10 minute timeout; exit codes: 0=pass, 1=fail, 8=pending, 124=timeout are expected and handled in next step; other codes like 4=auth error are re-raised)
|
|
75
|
+
> 4. **Wait for CI**: !`rc=0; if command -v gtimeout >/dev/null 2>&1; then gtimeout 600 gh pr checks --watch || rc=$?; elif command -v timeout >/dev/null 2>&1; then timeout 600 gh pr checks --watch || rc=$?; else gh pr checks --watch || rc=$?; fi; case $rc in 0|1|8|124) ;; *) exit $rc;; esac` (10 minute timeout; exit codes: 0=pass, 1=fail, 8=pending, 124=timeout are expected and handled in next step; other codes like 4=auth error are re-raised; uses gtimeout on macOS, timeout on Linux, no timeout as fallback)
|
|
76
76
|
> 5. **Check CI Status**: Run `gh pr checks --json name,state,bucket` and parse the output
|
|
77
77
|
> - If any check has `bucket: "fail"`, invoke `core:fix-ci` via the Skill tool. Since you are running autonomously, do NOT wait for user approval — apply the fixes directly. Report what was fixed and exit.
|
|
78
78
|
> 6. **Check Comments**: Run `node "${CLAUDE_PLUGIN_ROOT:-.agents}/skills/unresolved-pr-comments/scripts/unresolvedPrComments.ts"` and parse the JSON output
|