Skip to content

Commit 04795fb

Browse files
authored
Add files via upload
1 parent 4d751fa commit 04795fb

1 file changed

Lines changed: 106 additions & 62 deletions

File tree

.mergify/config.yml

Lines changed: 106 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -1,130 +1,174 @@
1+
# yaml-language-server: $schema=https://dashboard.mergify.com/config-schemas/mergify-schema-v2.json
12
pull_request_rules:
2-
- name: Automatically queue pre-commit Updates
3+
- name: Label on PKGBUILD Changes
34
conditions:
4-
- files ~= .pre-commit-config.yaml
5-
- author = renovate[bot]
5+
- files ~= PKGBUILD$
66
actions:
7-
queue:
87
label:
9-
add:
10-
- pre-commit
11-
- name: Automatically queue Dockerfile Updates
8+
toggle:
9+
- AUR
10+
- name: Label on pre-commit Updates
1211
conditions:
13-
- files ~= Dockerfile
14-
- author = renovate[bot]
15-
- and:
16-
- check-success = Test Image / API Test
17-
- 'check-success = DeepSource: Docker'
12+
- files ~= .pre-commit-config.yaml
1813
actions:
19-
queue:
20-
- name: Automatically label Dockerfile Updates
14+
label:
15+
toggle:
16+
- pre-commit
17+
- name: Label on Dockerfile Updates
2118
conditions:
22-
- files ~= Dockerfile
23-
- author = renovate[bot]
19+
- files ~= Dockerfile$
2420
actions:
2521
label:
26-
add:
22+
toggle:
2723
- docker
28-
- name: Automatically queue Github Actions Updates
24+
- name: Label on Github Actions Updates
2925
conditions:
30-
- or:
31-
- files ~= ^.github/workflows
32-
- files ~= action.yaml
33-
- author = renovate[bot]
26+
- files ~= ^.github/workflows
3427
actions:
35-
queue:
3628
label:
37-
add:
29+
toggle:
3830
- github-actions
39-
- name: Automatically queue valid Python Dependency Updates
40-
conditions:
41-
- files ~= ^(uv.lock|pyproject.toml)$
42-
- author = renovate[bot]
43-
- and:
44-
- check-success = Check Dependency Compatibility
45-
- check-success = Test Image / API Test
46-
- 'check-success = DeepSource: Python'
47-
- 'check-success = DeepSource: pyproject.toml'
48-
actions:
49-
queue:
50-
- name: Automatically label Python Dependency Updates
31+
- CI
32+
- name: Label on Python Dependency Updates
5133
conditions:
5234
- files ~= ^(uv.lock|pyproject.toml)$
53-
- author = renovate[bot]
5435
actions:
5536
label:
56-
add:
37+
toggle:
5738
- uv
5839
- python
5940
- dependencies
60-
- name: Automatically queue Docker Compose Updates
41+
- name: Label on Docker Compose Updates
6142
conditions:
6243
- files ~= ^(docker-compose-dev.yaml|docker-compose.yaml)$
63-
- author = renovate[bot]
6444
actions:
65-
queue:
6645
label:
67-
add:
46+
toggle:
6847
- docker-compose
6948
- name: Merge pull request when the configuration of Mergify is valid
7049
conditions:
7150
- author = MH0386
72-
- 'title = ci(Mergify): configuration update'
51+
- "title = ci(Mergify): configuration update"
7352
- head = mergify/MH0386/config-update
7453
actions:
7554
merge:
7655
- name: Comment when a pull request is merged
7756
conditions:
7857
- merged
7958
actions:
80-
delete_head_branch:
8159
comment:
8260
message: >-
83-
Thank you for your contribution @{{author}}! Your pull request has been
84-
merged.
61+
Thank you for your contribution @{{author}}! Your pull request has been merged.
8562
- name: Comment if there is a conflict
8663
conditions:
8764
- conflict
8865
actions:
8966
comment:
9067
message: Hi @{{author}}, Your PR is in conflict and cannot be merged.
9168
label:
92-
add:
69+
toggle:
9370
- conflict
9471
- name: Automatic update of the pull requests
9572
conditions:
9673
- -merged
9774
actions:
9875
update:
76+
- name: Ping PR author when conflicting with labellng
77+
description: Warn the pull request author when their PR are conflicting and add a label
78+
conditions:
79+
- conflict
80+
- -closed
81+
actions:
82+
label:
83+
toggle:
84+
- conflict
85+
comment:
86+
message: >-
87+
👋 {{author}} your PR is conflicting and needs to be updated to be merged
88+
- name: Label Mergify Stacks PRs
89+
description: Pull requests that are part of a Mergify stack should be labeled as such
90+
conditions:
91+
- "commits[0].commit_message ~= (?m)Change-Id:"
92+
actions:
93+
label:
94+
toggle:
95+
- stack
96+
- name: Label first PR of Mergify Stacks PRs
97+
description: The first PR of a Mergify stack should be labeled as such
98+
conditions:
99+
- "commits[0].commit_message ~= (?m)Change-Id:"
100+
- -base ~= ^mergify_cli/
101+
actions:
102+
label:
103+
toggle:
104+
- top of the stack
99105
- name: Add a queue label when PR is queued
106+
description: Toggle the queue label when a pull request is (un)queued.
100107
conditions:
101108
- queue-position > 0
102109
actions:
103110
label:
104111
toggle:
105112
- merge-queued
106113
- name: Notify when a PR is removed from the queue
114+
description: Notify the PR author when its pull request is removed from the merge queue.
107115
conditions:
108116
- queue-dequeue-reason != none
109117
- queue-dequeue-reason != pr-merged
110118
actions:
111119
comment:
112-
message: >-
113-
Hey @{{author}}, your pull request has been dequeued due to the following
114-
reason: {{queue_dequeue_reason}}.
115-
Sorry about that, but you can requeue the PR by using `@mergifyio requeue`
116-
if you think this was a mistake.
120+
message: "Hey @{{author}}, your pull request has been dequeued due to the following reason: {{queue_dequeue_reason}}. Sorry about that, but you can requeue the PR by using `@mergifyio requeue` if you think this was a mistake."
117121
queue_rules:
118-
- name: default
119-
update_method: merge
122+
- name: pre-commit Updates
123+
batch_size: 10
120124
allow_queue_branch_edit: true
121-
queue_branch_merge_method: fast-forward
125+
autoqueue: true
122126
queue_conditions:
123-
- and:
124-
- 'check-success = DeepSource: Secrets'
125-
- check-success = CodeFactor
126-
- check-success = GitGuardian Security Checks
127-
- check-success = SonarCloud
128-
- check-success = CodeQL
127+
- files ~= .pre-commit-config.yaml
128+
- author = renovate[bot]
129+
- name: Dockerfile Updates
130+
batch_size: 5
131+
allow_queue_branch_edit: true
132+
autoqueue: true
133+
queue_conditions:
134+
- files ~= Dockerfile$
135+
- author = renovate[bot]
136+
merge_conditions:
137+
- check-success = Test Image / API Test
138+
- name: Github Actions Updates
139+
batch_size: 10
140+
allow_queue_branch_edit: true
141+
autoqueue: true
142+
queue_conditions:
143+
- files ~= ^.github/workflows
144+
- author = renovate[bot]
145+
- name: Python Dependency Updates
146+
allow_queue_branch_edit: true
147+
autoqueue: true
148+
queue_conditions:
149+
- files ~= ^(uv.lock|pyproject.toml)$
150+
- author = renovate[bot]
151+
- check-success = Check Dependency Compatibility
152+
merge_conditions:
153+
- check-success = Test Image / API Test
154+
- name: Docker Compose Updates
155+
batch_size: 10
156+
allow_queue_branch_edit: true
157+
autoqueue: true
158+
queue_conditions:
159+
- files ~= ^(docker-compose-dev.yaml|docker-compose.yaml)$
160+
- author = renovate[bot]
129161
merge_queue:
130-
skip_intermediate_results: true
162+
mode: parallel
163+
scopes:
164+
source:
165+
files:
166+
CI:
167+
include:
168+
- .github/workflows/*
169+
AUR:
170+
include:
171+
- "**/PKGBUILD"
172+
pre-commit:
173+
include:
174+
- .pre-commit-config.yaml

0 commit comments

Comments
 (0)