mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-27 00:25:22 +00:00
* ci: add hourly PR CI sweeper for dropped pull_request runs Fresh PRs race GitHub's merge-ref computation: the open-event CI run can drop entirely or be created as an un-rerunnable startup_failure (~10-16 runs daily). The sweeper lists recently updated open PRs hourly, finds heads whose only pull_request-event CI runs are startup failures (or missing), and re-fires the event by close/reopen with the Barnacle app token (GITHUB_TOKEN events would not trigger workflows). Safety: 10-minute quiet window, 24h lookback, skips drafts, merge conflicts, pending mergeability, and auto-merge PRs (close cancels auto-merge); revalidates state, head, and CI attachment immediately before mutating; per-PR budget of two sweeper closes and a per-sweep cap of ten; reopen-on-unknown ownership so a stranded close (silent) always loses to a spurious reopen (visible); manual dispatch supports dry_run. Accepted tradeoffs are documented inline: shared-SHA PR topologies can mask a dropped run (skip-only miss; run.pull_requests matching would break fork PRs), and app-auth failover at worst doubles the close budget. * test(ci): exercise pr-ci-sweeper runner with a faked client * fix(test): lint-clean pr-ci-sweeper runner fakes |
||
|---|---|---|
| .. | ||
| barnacle-auto-response.d.mts | ||
| barnacle-auto-response.mjs | ||
| dependency-guard.d.mts | ||
| dependency-guard.mjs | ||
| find-reusable-release-validation.sh | ||
| guard-shared.mjs | ||
| pr-ci-sweeper.d.mts | ||
| pr-ci-sweeper.mjs | ||
| real-behavior-proof-check.mjs | ||
| real-behavior-proof-policy.d.mts | ||
| real-behavior-proof-policy.mjs | ||
| resolve-openclaw-ref.sh | ||
| run-openclaw-cross-os-release-checks.sh | ||
| security-sensitive-guard.d.mts | ||
| security-sensitive-guard.mjs | ||