Skip to content

gate(owner): enable the main merge queue after /release waits for queued merges (#1350 follow-up) #1368

Open

Description

@admarble

Summary

Turn on the merge queue for main once the release skill can wait for a queued merge. Split from #1350, which lands the CI trigger and the ruleset script but leaves the queue unapplied.

Why this is separate

  • /release Step 6 would tag the wrong commit. Under a merge queue, gh pr merge only enqueues (gh's help: "If required checks have passed, the pull request will be added to the merge queue") and returns. Step 6's next line, git pull --ff-only origin main, then fetches main without the release commit, and Step 7 tags whatever main was. Step 6 must wait until the PR's state is MERGED (and pull that merge commit) before tagging.
  • Plugin freeze. Skill edits are mirrored into plugin/skills/ (lint:skill-sync is enforced in CI), and plugin/ is frozen while the directory review of v2.19.0 is open (owner decision, 2026-10-08). This lands after the review.
  • Other merge sites (merger, fullsolve) already work with a queue: they don't pass --admin, and gh enqueues or enables auto-merge by itself. --squash and --subject are ignored under a queue; the queue's own merge method and commit message apply.

Acceptance Criteria

  • AC-1: /release Step 6 waits for the release PR to reach MERGED (polling gh pr view <N> --json state,mergeCommit), pulls, and Step 7 tags mergeCommit.oid, not a local HEAD — Evidence: gate test over the delimited Step 6–7 region, mutation-verified
  • AC-2: the queue's merge method is squash, and the release commit a queued merge produces is titled chore: release vX.Y.Z (the merge_queue rule has no commit-message field and the queue ignores --subject, so the title comes from the repo's squash_merge_commit_title, today COMMIT_OR_PR_TITLE: a one-commit PR takes its commit's title — unconfirmed in GitHub's docs, per community reports, e.g. community discussion #14818. Owner picks the mechanism: keep the setting and have /release make the release PR's single commit carry that title, or flip it to PR_TITLE, which changes every one-commit PR's squash title from the hook-validated commit message to the unlinted PR title) — Evidence: scripts/ruleset-main.sh --print | jq -r '.rules[] | select(.type=="merge_queue") | .parameters.merge_method' prints SQUASH, and gh api repos/{owner}/{repo} --jq .squash_merge_commit_title plus the AC-3 queued merge's git log -1 --format=%s show the title
  • AC-3: owner gate — after the plugin review closes, the ruleset with the queue is applied, and one PR merges through the queue — Evidence: link to the merged PR's queue entry

Context

Activity

  1. added
    enhancement
    human-required
    on Oct 8, 2026
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

    enhancementhuman-required

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions