Skip to content

ci(mergify): drop the path-based owner-approval merge protection - #19

Open
systemfsoftware-bot wants to merge 1 commit into
mainfrom
refactor/drop-owner-approval-protection
Open

systemfsoftware-bot wants to merge 1 commit into
mainfrom
refactor/drop-owner-approval-protection

Conversation

@systemfsoftware-bot

Copy link
Copy Markdown
Contributor

What

Removes the Repository owner approves shared config and tooling merge
protection. It required the repository owner's approval for any PR that
touched .github/, .mergify.yml, an API report, the flake, or a tool config
(tsconfig, vitest, oxlint, biome, stryker).

Why

Which files a repository keeps under .github/, and which tool configs it
uses, are ordinary files. A path match stands in for "changes what the gate
checks", and it is both too broad (it held a performance change to a CI script
for the owner) and too narrow (it missed a task-graph file that changes which
tasks the gate runs). Risk is classified from the diff by the gates that read
it, not by a filename.

Change

Delete the one merge_protections entry. Every other protection
(Merge authority, Conventional PR title, Hold label, Subtree PRs need subtree history), every anchor and every pull_request_rules entry is
unchanged.

Verification

  • .mergify.yml parses; merge_protections holds the four remaining entries.
  • Mergify validates the config on this PR.

Note

This PR itself touches .mergify.yml, so the protection it removes still
applies to it until it merges: it needs the owner's approval to merge.

The "Repository owner approves shared config and tooling" protection held
a PR for the owner's approval whenever it touched .github/, .mergify.yml,
the flake, an API report or a tool config. A path match is both too broad
(a perf change to a CI script) and too narrow (it misses a file that
changes what the gate runs). Every other protection, anchor and
pull-request rule is unchanged.
@mergify

mergify Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

Merge Protections

🔴 2 of 5 protections blocking · waiting on 👀 reviews and 🙋 you

Protection Waiting on
🔴 Merge authority 👀 reviews and 🙋 you
🔴 🚦 Auto-queue 👀 reviews and 🙋 you
🟢 📃 Configuration Change Requirements —
🟢 Conventional PR title —
🟢 Hold label —

🔴 Merge authority

Waiting for any of

  • approved-reviews-by = kiro-systemf[bot]
  • approved-reviews-by = systemfsoftware-bot
This rule is failing.

A PR merges only after the review app approves it (phase 1) or the review bot's review-gate passes (phase 2). A Dependabot patch or minor bump skips the review gate; a major bump still needs it.

  • any of:
    • all of:
      • author = dependabot[bot]
      • any of:
        • dependabot-update-type = version-update:semver-minor
        • dependabot-update-type = version-update:semver-patch
        • title ~= (?i)\bthe [a-z0-9@/._-]*(minor|patch)[a-z0-9@/._-]* group\b
      • dependabot-update-type != version-update:semver-major
    • any of:
      • approved-reviews-by = kiro-systemf[bot]
      • approved-reviews-by = systemfsoftware-bot
  • #changes-requested-reviews-by = 0

🔴 🚦 Auto-queue

Waiting for any of

  • approved-reviews-by = kiro-systemf[bot]
  • approved-reviews-by = systemfsoftware-bot
This rule is failing.

When all merge protections are satisfied and these conditions match, this pull request will be queued automatically.

  • any of:
    • all of:
      • author = dependabot[bot]
      • any of:
        • dependabot-update-type = version-update:semver-minor
        • dependabot-update-type = version-update:semver-patch
        • title ~= (?i)\bthe [a-z0-9@/._-]*(minor|patch)[a-z0-9@/._-]* group\b
      • dependabot-update-type != version-update:semver-major
    • any of:
      • approved-reviews-by = kiro-systemf[bot]
      • approved-reviews-by = systemfsoftware-bot
  • -draft
  • -label = hold

Show 3 satisfied protections

🟢 📃 Configuration Change Requirements

Mergify configuration change

  • any of:
    • check-success = @mergify/Configuration changed
    • check-success = @mergify/Configuration has been deleted

🟢 Conventional PR title

The squash commit takes the PR title, so the title must be a conventional commit.

  • title ~= ^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test)(\([^)]+\))?!?: \S

🟢 Hold label

The hold label keeps a PR out of the default branch.

  • -label = hold

@systemfsoftware-bot

Copy link
Copy Markdown
Contributor Author

Review note (head ba88b35): no blocking defects.

  • Deletes exactly the "Repository owner approves shared config and tooling" entry; the other four protections, every anchor and every pull_request_rules entry are unchanged, and the file parses.
  • Mergify checks on this head: "Configuration changed" = success, "check" = success.
  • Stop-condition: across 134 org repos, exactly one file names that protection — this repo itself; no extending repository names it. That includes the alternate config paths (mergify.yml, .mergify/config.yml): 0 repos use them for this protection.
  • P3, non-blocking: prose docs outside .mergify.yml may still mention the retired gate — a docs-cleanup follow-up, not a config dependency.
  • This PR touches .mergify.yml, so the protection it removes still applies to it until merge (it needs the owner approval) — expected, not a defect.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant