Repository navigation
Expand file tree
/
Copy pathmergify.yml
More file actions
103 lines (100 loc) · 5.73 KB
/
Copy pathmergify.yml
File metadata and controls
103 lines (100 loc) · 5.73 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
# Mergify configuration.
# Schema: https://docs.mergify.com/mergify-configuration-schema.json
#
# Scope: auto-merge Dependabot updates once the develop ruleset is satisfied.
# The ruleset still requires the required checks and one code-owner approval,
# so Mergify never merges anything a human has not approved.
#
# Removed (#3476): the queue, auto-approve, imgbot and meta-agent rules.
# They gated on a check named "All Checks Passed" that no workflow has
# produced since the workflow consolidation, and the imgbot and
# lightspeed-bot authors have opened no PRs recently. The only mechanism
# that actually merged Dependabot PRs is auto_merge below, so it is kept.
#
# Removed (#3574): the `update` rule "Keep same-repository pull requests on
# develop current". Merging develop into open branches is now done by
# `.github/workflows/keep-pr-current.yml`, for the reasons below.
#
# Keeping this repository's branches current is unchanged in intent and is not
# dropped with the rule:
#
# * `develop-branch-ruleset` sets `strict_required_status_checks_policy`, so a
# branch behind develop is still blocked from merging. That requirement is
# untouched and is what makes the update worth doing at all.
# * `.github/workflows/keep-pr-current.yml` performs the merge, through
# GitHub's `PUT /pulls/{n}/update-branch` API, on the same exclusions the
# rule used: non-draft, same-repository, non-archived, base develop, any
# staleness.
#
# Why the rule had to go rather than be adjusted. The `update` action's schema
# accepts only `bot_account` (`additionalProperties: false` in
# `$defs.UpdateActionModel`, https://docs.mergify.com/mergify-configuration-schema.json),
# so there is no option for how a failure is reported. Mergify reports the
# rule's check run with conclusion `failure` whenever it cannot perform the
# update — including when it declines for its own reasons, not only when the
# merge conflicts. Observed on the 394 pull requests opened between 2026-09-03
# and 2026-09-29:
#
# * #3524 and #3532 — "merge conflict between base and head". Both were
# conflicting in `FEEDBACK_RESPONSE.md` only, one commit behind develop.
# * #3580 and #3662 — "head ref does not exist", recorded 5 and 6 seconds
# after those pull requests merged and their branches were auto-deleted
# (`delete_branch_on_merge` is enabled on this repository). A failure on a
# merged pull request, actionable by nobody.
#
# `-conflict` did not prevent the first pair. Mergify's own preconditions
# already include "has no conflict"
# (https://docs.mergify.com/workflow/actions/update), so `-conflict` and the
# precondition read the same signal and share the same gap: for a short window
# after develop moves, the pull request's mergeability is not yet computed, the
# condition does not hold, and the update is attempted. On #3524 the rule was
# correctly skipped at 04:33 UTC when Mergify already knew the pull request
# conflicted, then fired at 05:35 UTC — 44 seconds after #3689 landed on
# develop — and failed. No additional condition can close that window, because
# the only available signal is the one that is briefly unavailable.
#
# The merge queue was considered and rejected for the `update` rule above:
# Mergify documents `strict_required_status_checks_policy` as incompatible with
# its default batch queue (https://docs.mergify.com/merge-queue/github-rulesets).
# `auto_merge_conditions` below does use that queue, though, and on a draft
# batch it failed every Dependabot pull request with the "Mergify Merge Queue"
# check run `action_required`: "Configuration not compatible with a branch
# protection setting". The documented fix that leaves the ruleset untouched is
# in-place checks, which test a pull request on its own branch instead of a
# draft batch. Mergify enables them only when `max_parallel_checks` is 1, every
# queue rule has `batch_size` 1, and the queue CI is single-step (no
# `merge_conditions` that differ from `queue_conditions`). The `merge_queue` and
# `queue_rules` blocks below set exactly that, so no ruleset setting is weakened.
#
# `merge=union` on CHANGELOG.md (#3581) remains in place and remains the right
# fix for the changelog specifically: it stops two pull requests each adding an
# `[Unreleased]` entry from colliding, which is the highest-churn conflict in
# this repository. It is not a fix for the reporting problem above, because
# `FEEDBACK_RESPONSE.md` is rewritten whole by each pull request that carries
# AI feedback and union-merging two such documents would produce a meaningless
# hybrid rather than a resolved file.
# In-place checks, so the queue is compatible with the develop ruleset's
# "Require branches to be up to date before merging". Do not add
# `merge_conditions` here, raise `batch_size`, or raise `max_parallel_checks`:
# any of them switches in-place checks off and brings the configuration error
# back.
merge_queue:
max_parallel_checks: 1
queue_rules:
- name: default
batch_size: 1
merge_protections_settings:
reporting_method: check-runs
# Merge once GitHub branch protection is satisfied (required checks plus a
# code-owner approval), for Dependabot only. `true` here would mean every
# author on every branch, which previously auto-merged human PRs against
# an unprotected release branch
# (https://docs.mergify.com/merge-protections/auto-merge/).
#
# This is inert unless a `merge_protections` rule below matches the PR, or
# the merge queue is enabled: with no matching rule there are no
# success_conditions to evaluate, and Mergify reports "does not match any
# conditions of the merge protections". Left as-is deliberately — the gate
# that matters is the develop ruleset (code-owner review), not Mergify's.
auto_merge_conditions:
- author~=^(dependabot\[bot\]|app/dependabot)$