1 # Note: We do not use the rebase strategy to merge PRs, because that
2 # loses information needed by changelog-d to associate commits with PRs.
6 # implementing PR delay logic: apply a label after 2 days of inactivity
7 # the label will allow Mergify to merge (see #8442, #8448)
12 name: Wait for 2 days before validating merge
14 - updated-at<2 days ago
17 - label=squash+merge me
18 - label=merge+no rebase
19 - '#approved-reviews-by>=2'
21 # label when Mergify is ready but waiting for the above
26 name: Waiting out merge delay (used by bot)
33 - label=squash+merge me
34 - label=merge+no rebase
35 - '#approved-reviews-by>=2'
36 - '#changes-requested-reviews-by=0'
38 # lifted these from branch protection imports
39 - check-success=fourmolu
41 - check-success=Meta checks
42 - check-success=Doctest Cabal
43 - check-success=Validate post job
44 - check-success=Bootstrap post job
45 - 'check-success=docs/readthedocs.org:cabal'
47 # rebase+merge strategy
51 name: Put pull requests in the rebase+merge queue
55 - label=merge delay passed
56 - '#approved-reviews-by>=2'
59 # merge+squash strategy
63 name: Put pull requests in the squash+merge queue
66 - label=squash+merge me
67 - label=merge delay passed
68 - '#approved-reviews-by>=2'
71 # merge+no rebase strategy
75 name: Merge "merge+no rebase" pull requests directly (without a queue)
78 - label=merge+no rebase
79 - label=merge delay passed
80 - '#approved-reviews-by>=2'
83 # merge strategy for release branches
87 name: Put release branch pull requests in the rebase+merge queue
92 - '#approved-reviews-by>=2'
95 # merge+squash strategy for release branches
99 name: Put release branch pull requests in the squash+merge queue
102 - label=squash+merge me
104 - '#approved-reviews-by>=2'
105 - '-label~=^blocked:'
107 # merge strategy for backports: require 1 approver instead of 2
111 name: Put backports in the rebase+merge queue
116 - '#approved-reviews-by>=1'
117 - '-label~=^blocked:'
119 # merge+squash strategy for backports: require 1 approver instead of 2
123 name: Put backports in the squash+merge queue
125 - label=squash+merge me
128 - '#approved-reviews-by>=1'
129 - '-label~=^blocked:'
131 # backports should be labeled as such
136 name: Label backports as such
138 - body~=automatic backport
141 # Mergify now requires different queues for different strategies
143 update_bot_account: Mikolaj
145 update_method: rebase
148 update_bot_account: Mikolaj