Skip to content

Require resolved review threads before Mergify queues a PR #163

Closed

Description

@ericlitman

Goal

Mergify does not queue a pull request while it has an unresolved review thread.

Why

Mergify queues on verify, Unfret and live-gate alone. On PR #154, Greptile left two inline threads, one of them a real design defect, and Mergify merged the PR with both unanswered. No tool in the merge path reads review threads (MASTRA-1054 covers the run-these side). Eric approved this rule on 2026-10-12.

Scope

  • Add "#review-threads-unresolved = 0" to the default queue rule's queue_conditions and to the Queue ready pull requests protection's success_conditions in .mergify.yml. Mergify documents review-threads-unresolved as the list of review threads GitHub does not mark resolved, so # gives their count (https://docs.mergify.com/configuration/conditions/).
  • Update the queue sentence at the top of CHANGES.md and the merge-gate description in AGENTS.md only if they list the queue conditions. If AGENTS.md changes, the PR merges alone, before other PRs in its batch start review.

Acceptance criteria

  • Given a ready PR with passing verify, Unfret and live-gate and one unresolved review thread, when Mergify evaluates it, then its protection waits on #review-threads-unresolved = 0 and it is not queued. Show the Mergify summary as evidence.
  • Given the same PR after the thread is resolved, when Mergify evaluates it, then it queues.
  • .mergify.yml is nonRuntime in the verifier registry, so the live gate records "no runtime change".

Constraints

  • An answered thread that is not resolved still blocks. Authors answer and then resolve each thread.

Source: triage 2026-10-12; PR #154 Greptile threads.

Activity

  1. ericlitman commented on Oct 12, 2026

    @ericlitman
    OwnerAuthor

    This rides in the #160 PR (release 1.6.2), because both edit the top of CHANGES.md. The PR will close both issues.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions