disinto/lib
openhands b7e09d17ef fix: Extract lib/pr-lifecycle.sh — walk-PR-to-merge library (#795)
New reusable library with clean function boundaries for the PR lifecycle:
- pr_create, pr_find_by_branch — PR creation and lookup
- pr_poll_ci — poll CI with infra vs code failure classification
- pr_poll_review — poll for review verdict (bot comments + formal reviews)
- pr_merge, pr_is_merged — merge with 405 handling and race detection
- pr_walk_to_merge — full orchestration loop (CI → review → merge)
- build_phase_protocol_prompt — git push instructions for agent prompts

The pr_walk_to_merge function uses agent_run() which callers must define
(guarded stub provided). This bridges to the synchronous SDK architecture
where the orchestrator bash loop IS the state machine — no phase files.

Extracted from: dev/phase-handler.sh, dev/dev-poll.sh, lib/ci-helpers.sh
Smoke test updated to include the new library.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-27 18:01:06 +00:00
..
hooks fix: Remove Matrix integration — notifications move to forge + OpenClaw (#732) 2026-03-26 14:53:56 +00:00
agent-session.sh fix: Remove Matrix integration — notifications move to forge + OpenClaw (#732) 2026-03-26 14:53:56 +00:00
AGENTS.md fix: {project}-ops repo — separate operations from code (#757) (#767) 2026-03-26 19:55:12 +01:00
build-graph.py fix: use undirected reachability for reviewer affected-objectives tracing 2026-03-24 21:31:55 +00:00
ci-debug.sh fix: Replace Codeberg dependency with local Forgejo instance (#611) 2026-03-23 16:57:12 +00:00
ci-helpers.sh fix: Vault-gated deployment promotion via Woodpecker environments (#755) 2026-03-26 17:16:39 +00:00
env.sh fix: agents container: dev-poll fails because factory is mounted read-only (#781) 2026-03-27 14:29:22 +00:00
file-action-issue.sh fix: Replace Codeberg dependency with local Forgejo instance (#611) 2026-03-23 16:57:12 +00:00
formula-session.sh fix: {project}-ops repo — separate operations from code (#757) (#767) 2026-03-26 19:55:12 +01:00
guard.sh fix: fix: check_active guard should log to stderr when skipping — silent agent dropout on missing state file (#663) 2026-03-25 08:00:29 +00:00
load-project.sh fix: disinto init: project TOML uses localhost forge_url, breaks agents container (#782) 2026-03-27 16:13:59 +00:00
mirrors.sh fix: Push to public mirrors after merge (#614) 2026-03-23 19:19:16 +00:00
parse-deps.sh fix: parse-deps.sh inline regex matches every line — awk /pattern/i flag is invalid (#600) 2026-03-23 10:59:47 +00:00
pr-lifecycle.sh fix: Extract lib/pr-lifecycle.sh — walk-PR-to-merge library (#795) 2026-03-27 18:01:06 +00:00
secret-scan.sh fix: Replace Codeberg dependency with local Forgejo instance (#611) 2026-03-23 16:57:12 +00:00
tea-helpers.sh fix: tea_relabel uses edit subcommand, add sha256 checksum for tea binary (#666) 2026-03-25 13:34:58 +00:00