From 0e7dc125ee2ca06bb55e092d30a6fe8ba8a488e3 Mon Sep 17 00:00:00 2001 From: Yehonal Date: Mon, 16 Nov 2026 23:56:00 +0000 Subject: [PATCH] fix: evaluate the latest verified workflow check runs --- CHANGELOG.md | 4 + README.md | 2 +- VERSION | 2 +- docs/github-pr-merge.md | 18 +- docs/index.html | 4 +- openpack.json | 2 +- scripts/syncwheel.py | 173 ++++++++++--- scripts/syncwheel_github.py | 315 ++++++++++++++++++++++- tests/test_github_latest_checks.py | 390 +++++++++++++++++++++++++++++ 9 files changed, 853 insertions(+), 57 deletions(-) create mode 100644 tests/test_github_latest_checks.py diff --git a/CHANGELOG.md b/CHANGELOG.md index b5a64438..462c8f0c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 0.47.23 - 2026-11-16 + +- Evaluate the latest verified check run per workflow and check name for PR merges. Report superseded runs as informational while preserving blocks for current failures, pending checks, distinct workflows and ambiguous history. Apply the same selection to required checks. + ## 0.47.21 - 2026-11-16 - Keep status without fetch, check with --no-fetch, and worktree list observational on control metadata. Skip implicit startup maintenance, authorization nonce creation or cleanup, and persistent patch-ID cache writes while preserving manifest selection checks and explicit fetch behavior. diff --git a/README.md b/README.md index e3fb745b..a5a89f18 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ Keep many long-lived pull requests clean, rebuildable, and publishable from one manifest. -Current version: `0.47.21` +Current version: `0.47.23` `syncwheel` is a small CLI and workflow model for maintainers who carry several PR branches against an upstream repository and need those branches to stay diff --git a/VERSION b/VERSION index 571e0459..cf7b6cd2 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.47.21 +0.47.23 diff --git a/docs/github-pr-merge.md b/docs/github-pr-merge.md index 3e418ec8..edaaa783 100644 --- a/docs/github-pr-merge.md +++ b/docs/github-pr-merge.md @@ -45,10 +45,20 @@ At least one provenance filter (`--pr-author`, `--commit-author`, or empty lists, unknown keys, tokens, commands, and secrets are rejected. `--checks all` is the fail-closed default: at least one check must exist and -every observed check must finish successfully or be skipped. A repository -without CI may explicitly use `--checks none`; the merge plan then records a -`checks_not_required` warning. This opt-out is clone-local and does not bypass -required checks reported by GitHub branch protection or rulesets. +every current check must finish successfully or be skipped. For the exact PR +head, Syncwheel groups check runs by check name and verified workflow identity +and evaluates the latest run in each group. A rerun attempt is compared only +within its own run. Superseded runs are reported as informational warnings; a +latest queued, cancelled or failed run still blocks. Ambiguous identity or +ordering never hides a blocking observation. Incomplete or truncated check +history blocks the merge even when the rows received so far are green. Legacy status contexts remain +separate from workflow checks. The same selection applies to required checks, +so success in an unrelated workflow with the same check name cannot hide a +failure. + +A repository without CI may explicitly use `--checks none`; the merge plan +then records a `checks_not_required` warning. This opt-out is clone-local and +does not bypass required checks reported by GitHub branch protection or rulesets. `private_free_rules` is a narrow fallback for private repositories on GitHub Free. It applies only when GitHub returns its explicit plan-limit response for diff --git a/docs/index.html b/docs/index.html index 148ab9a0..93ed2ffd 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1826,7 +1826,7 @@
- AI-ready Git coordination v0.47.21 + AI-ready Git coordination v0.47.23

Move atmachine speed.Stay in control.

Syncwheel coordinates every Git lane used by humans, AI agents, CI and delivery systems—without sacrificing review, safety or recovery.

@@ -2602,7 +2602,7 @@

Your first verified plan in minutes.