Skip to content

Base branch CI monitoring and repair in Fix run Pass #1796

Closed

Description

@JacobStephens2

Parent

#1784

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 on origin before searching open pull requests.
  • If the latest push workflow run on the Base branch tip commit failed on attempt 1 with 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 branches fix-<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 titled Fix 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-merge and merge.always in the User config, plus email / email-unless-merged / no-email and email.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> or base-fix issue 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.

Blocked by

Activity

  1. added
    enhancement
    ready-for-agent
    on Nov 5, 2026
  2. JacobStephens2 commented on Nov 6, 2026

    @JacobStephens2
    OwnerAuthor

    Closed by #1807, merged into issue-1784 by a thirdshift Ticket run with Self-merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementready-for-agent

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions