Skip to content

Unattended Fix run Pass for pull requests (thirdshift fix [--author] [base <branch>]) #1795

Closed

Description

@JacobStephens2

Parent

#1784

What to build

Allow thirdshift fix to run with no pull request argument as an unattended Pass (with optional base <branch> / --base <branch> and --author <login>) that selects and repairs the lowest-numbered eligible open pull request with a Merge conflict or CI red.

Acceptance criteria

  • thirdshift fix with no pull request target runs as a Pass that respects the repository's Command limit on the machine (UpToTheLimit), recording a skip in the Activity log and exiting 0 with no Run notification when at the limit.
  • Accepts optional base <branch> / --base <branch> (defaulting to the Launch directory's checked-out branch) and --author <login> / author <login> in Pass mode, and rejects combining either flag with a targeted <PR URL or number> with exit 2.
  • Searches open, non-draft, same-repository pull requests targeting the Base branch in ascending number order (lowest number first), authored by a Trusted account (or matching --author <login>, which must itself be a Trusted account), skipping pull requests labelled in-progress, pull requests whose CI is still pending with no merge conflict, and pull requests that are mergeable with green or absent CI.
  • Selects the first eligible pull request that has a Merge conflict (CONFLICTING) or CI red on its current head, reserves it across machines (refs/thirdshift/reservations/<pr> + in-progress), and runs the Fix run on it; if another run reserved it first, passes over it for the next eligible pull request.
  • Because a failed Fix run converts its pull request back to a draft, a subsequent thirdshift fix Pass naturally skips that pull request without looping on it.
  • When no open pull request is eligible (or none can be reserved), the Pass is skipped with exit 0, a reason on stderr, an Activity log skip entry (when the reason changed), and no Run notification.
  • GLOSSARY.md lists a Fix run started with no pull request under Pass.

Blocked by

Activity

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

    @JacobStephens2
    OwnerAuthor

    Closed by #1805, 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