Fix phase-merge and batch-implement for projects without CI #360
No reviewers
Labels
No labels
bug
contract
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
iterative-works/iw-cli!360
Loading…
Reference in a new issue
No description provided.
Delete branch "fix-phase-merge-no-ci"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
GitHubClient.fetchCheckStatuses: treat gh's "no checks reported on the '' branch" error asRight(Nil)sophase-mergereaches the existingNoChecksFound → proceed-with-mergepathbatch-implementpre-flight: partition dirty paths into workflow state (underproject-management/issues/<id>/) vs user code via the new pureWorkflowStatePaths.partitionhelper; auto-commit state-only dirt so re-entry works after an interrupted run, and only block on user-owned changesMotivation
Reported by Michal: a batch-implement run on
IW-344committed a PR,phase-mergefailed because the project has no CI (gh exits non-zero with "no checks reported"), the run leftreview-state.jsonmodified, and then re-running batch-implement was blocked by its own state file.Test plan
fetchCheckStatuses returns Right(Nil) when gh reports 'no checks reported'— failing before the fix, passing afterWorkflowStatePathsTestcovering mixed paths, other-issue state paths, empty input-Werrorpass🤖 Generated with Claude Code