◈ Passerelle

Project

ADR-005 — strict: false on branch protection, because the Mergify queue refuses strict: true

Context

Mergify is the only merge pilot of this repository: a pull request is queued, re-tested on the latest base together with the ones queued ahead of it, then merged. GitHub branch protection on main lists the required checks (ci-budget, build-test, sanitize, host-tools, qnx-syntax, rules, stale-base-guard).

With required_status_checks.strict: true — the "Require branches to be up to date before merging" box — the queue <strong>refused to queue anything</strong> and posted a failing Mergify Merge Queue check reading <em>"Configuration not compatible with a branch protection setting"</em>. The reason is mechanical: the queue tests a pull request through a draft PR built on the latest base, then merges the <em>original</em> branch, which GitHub by then considers out of date.

Decision

Set strict: false and keep every required check:

gh api -X PUT repos/Tradoooo/passerelle/branches/main/protection --input - <<'JSON'
{
  "required_status_checks": {
    "strict": false,
    "contexts": ["ci-budget", "build-test", "sanitize", "host-tools",
                 "qnx-syntax", "rules", "stale-base-guard"]
  },
  "enforce_admins": false,
  "required_pull_request_reviews": null,
  "restrictions": null
}
JSON

Two traps found the same day, both recorded so nobody pays them twice: the endpoint is PUT (a PATCH answers 404), and <strong>all four keys</strong> must be supplied or GitHub answers 422.

A valid Mergify configuration is also not enough on its own: queue_rules only <em>defines</em> the queue, so a pull_request_rules entry with a queue action is required, and the Merge Queue product must be activated for the repository.

Consequences