|
| 1 | +# yaml-language-server: $schema=https://dashboard.mergify.com/config-schemas/mergify-schema-v2.json |
1 | 2 | pull_request_rules: |
2 | | - - name: Automatically queue pre-commit Updates |
| 3 | + - name: Label on PKGBUILD Changes |
3 | 4 | conditions: |
4 | | - - files ~= .pre-commit-config.yaml |
5 | | - - author = renovate[bot] |
| 5 | + - files ~= PKGBUILD$ |
6 | 6 | actions: |
7 | | - queue: |
8 | 7 | label: |
9 | | - add: |
10 | | - - pre-commit |
11 | | - - name: Automatically queue Dockerfile Updates |
| 8 | + toggle: |
| 9 | + - AUR |
| 10 | + - name: Label on pre-commit Updates |
12 | 11 | 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 |
18 | 13 | actions: |
19 | | - queue: |
20 | | - - name: Automatically label Dockerfile Updates |
| 14 | + label: |
| 15 | + toggle: |
| 16 | + - pre-commit |
| 17 | + - name: Label on Dockerfile Updates |
21 | 18 | conditions: |
22 | | - - files ~= Dockerfile |
23 | | - - author = renovate[bot] |
| 19 | + - files ~= Dockerfile$ |
24 | 20 | actions: |
25 | 21 | label: |
26 | | - add: |
| 22 | + toggle: |
27 | 23 | - docker |
28 | | - - name: Automatically queue Github Actions Updates |
| 24 | + - name: Label on Github Actions Updates |
29 | 25 | conditions: |
30 | | - - or: |
31 | | - - files ~= ^.github/workflows |
32 | | - - files ~= action.yaml |
33 | | - - author = renovate[bot] |
| 26 | + - files ~= ^.github/workflows |
34 | 27 | actions: |
35 | | - queue: |
36 | 28 | label: |
37 | | - add: |
| 29 | + toggle: |
38 | 30 | - 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 |
51 | 33 | conditions: |
52 | 34 | - files ~= ^(uv.lock|pyproject.toml)$ |
53 | | - - author = renovate[bot] |
54 | 35 | actions: |
55 | 36 | label: |
56 | | - add: |
| 37 | + toggle: |
57 | 38 | - uv |
58 | 39 | - python |
59 | 40 | - dependencies |
60 | | - - name: Automatically queue Docker Compose Updates |
| 41 | + - name: Label on Docker Compose Updates |
61 | 42 | conditions: |
62 | 43 | - files ~= ^(docker-compose-dev.yaml|docker-compose.yaml)$ |
63 | | - - author = renovate[bot] |
64 | 44 | actions: |
65 | | - queue: |
66 | 45 | label: |
67 | | - add: |
| 46 | + toggle: |
68 | 47 | - docker-compose |
69 | 48 | - name: Merge pull request when the configuration of Mergify is valid |
70 | 49 | conditions: |
71 | 50 | - author = MH0386 |
72 | | - - 'title = ci(Mergify): configuration update' |
| 51 | + - "title = ci(Mergify): configuration update" |
73 | 52 | - head = mergify/MH0386/config-update |
74 | 53 | actions: |
75 | 54 | merge: |
76 | 55 | - name: Comment when a pull request is merged |
77 | 56 | conditions: |
78 | 57 | - merged |
79 | 58 | actions: |
80 | | - delete_head_branch: |
81 | 59 | comment: |
82 | 60 | 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. |
85 | 62 | - name: Comment if there is a conflict |
86 | 63 | conditions: |
87 | 64 | - conflict |
88 | 65 | actions: |
89 | 66 | comment: |
90 | 67 | message: Hi @{{author}}, Your PR is in conflict and cannot be merged. |
91 | 68 | label: |
92 | | - add: |
| 69 | + toggle: |
93 | 70 | - conflict |
94 | 71 | - name: Automatic update of the pull requests |
95 | 72 | conditions: |
96 | 73 | - -merged |
97 | 74 | actions: |
98 | 75 | 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 |
99 | 105 | - name: Add a queue label when PR is queued |
| 106 | + description: Toggle the queue label when a pull request is (un)queued. |
100 | 107 | conditions: |
101 | 108 | - queue-position > 0 |
102 | 109 | actions: |
103 | 110 | label: |
104 | 111 | toggle: |
105 | 112 | - merge-queued |
106 | 113 | - 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. |
107 | 115 | conditions: |
108 | 116 | - queue-dequeue-reason != none |
109 | 117 | - queue-dequeue-reason != pr-merged |
110 | 118 | actions: |
111 | 119 | 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." |
117 | 121 | queue_rules: |
118 | | - - name: default |
119 | | - update_method: merge |
| 122 | + - name: pre-commit Updates |
| 123 | + batch_size: 10 |
120 | 124 | allow_queue_branch_edit: true |
121 | | - queue_branch_merge_method: fast-forward |
| 125 | + autoqueue: true |
122 | 126 | 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] |
129 | 161 | 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