Repository navigation
Closed
Labels
Description
Parent
What to build
Extend the thirdshift fix [base <branch>] Pass (when --author is not given) so that it first checks the Base branch's CI on origin and, when the Base branch is red, repairs it via a pull request targeting <base>—either performing a Self-merge or leaving the pull request ready for review and emailing a Run notification according to the command's flags and the User config.
Acceptance criteria
- When
thirdshift fix [base <branch>]runs as a Pass without--author, it checks the Base branch onoriginbefore searching open pull requests. - If the latest push workflow run on the Base branch tip commit failed on attempt
1with rerunnable failed jobs, thirdshift requests one re-run of the failed jobs (gh run rerun <id> --failed), logs the re-run on stderr, and finishes that pass as skipped while the re-run runs. - When checks on the Base branch tip commit remain red (after a re-run or on a non-rerunnable check failure) and no pull request from
fix-<base>-<short-sha>already exists in the repository (whether open and ready,in-progress, or draft after a failed attempt), the Fix run branchesfix-<base>-<short-sha>off the Base branch tip in a Worktree, runs a CI-fix session with the failing check details from<base>, opens a pull request titledFix CI on <base>: <check>[, <check>…]targeting<base>, and takes it through Delivery (treating all red checks as its own to fix rather than Inherited failures). - Follows
merge/no-mergeandmerge.alwaysin the User config, plusemail/email-unless-merged/no-emailandemail.always/email.unless_merged, so the operator can choose whether the Base branch fix pull request automatically performs a Self-merge once green or stays ready for review and emails a Run notification. - When the Base branch fix pull request merges via Self-merge, thirdshift closes any open
CI red on <base>orbase-fixissue covering<base>. - When a
fix-<base>-<short-sha>pull request already exists for the current Base branch tip commit, the Pass does not open a duplicate pull request for that commit.
Activity
JacobStephens2 commentedon Nov 6, 2026
Closed by #1807, merged into issue-1784 by a thirdshift Ticket run with Self-merge.