Skip to content

test(private-skills): guard batch sweep state ranking#22

Merged
vincentkoc merged 1 commit into
mainfrom
fix/openclaw-pr-batch-sweep-state-checks
Jul 1, 2026
Merged

test(private-skills): guard batch sweep state ranking#22
vincentkoc merged 1 commit into
mainfrom
fix/openclaw-pr-batch-sweep-state-checks

Conversation

@vincentkoc

Copy link
Copy Markdown
Owner

What Problem This Solves

The batch-sweep ranker already rejects hydrated PRs with an unresolved REST merge state and correctly treats GitHub's year-1 completedAt value as unset for in-progress checks. Those review fixes landed in #21 without regression coverage, so either behavior could regress silently.

Why This Change Was Made

Add focused CLI-level tests for both state-selection rules and wire the repository test target into make ci. The fixtures cover an older completed failure and success followed by a newer in-progress run, ensuring both rejection and scoring behavior use the latest check.

User Impact

Batch sweeps keep indeterminate merge states out of the final candidate list and do not rank PRs from stale check results.

Evidence

  • make test
  • make validate
  • make check-generated
  • pre-commit run --all-files
  • make ci
  • autoreview: clean, no accepted/actionable findings

@vincentkoc vincentkoc marked this pull request as ready for review July 1, 2026 09:50
@vincentkoc vincentkoc merged commit b798667 into main Jul 1, 2026
6 checks passed
@vincentkoc vincentkoc deleted the fix/openclaw-pr-batch-sweep-state-checks branch July 1, 2026 09:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant