|
| 1 | +queue_rules: |
| 2 | + - name: default |
| 3 | + queue_conditions: |
| 4 | + - check-success~=pre-commit |
| 5 | + - "#approved-reviews-by>=1" |
| 6 | + - -draft |
| 7 | + - -conflict |
| 8 | + - -closed |
| 9 | + - label!=do-not-merge |
| 10 | + merge_conditions: |
| 11 | + - check-success~=buildkite/ci |
| 12 | + merge_method: squash |
| 13 | + commit_message_template: | |
| 14 | + {{ title }} (#{{ number }}) |
| 15 | +
|
| 16 | + {{ body }} |
| 17 | +
|
| 18 | +merge_protections: |
| 19 | + - name: PR title must follow conventional format |
| 20 | + if: |
| 21 | + - base = main |
| 22 | + success_conditions: |
| 23 | + - "title~=(?i)^\\[(feat|feature|bugfix|fix|refactor|perf|ci|doc|docs|misc|chore|kernel|new.?model)\\]" |
| 24 | + |
1 | 25 | pull_request_rules: |
2 | 26 |
|
3 | 27 | # ============================================================ |
4 | | - # Auto-labeling by file path |
| 28 | + # Type labels (from PR title prefix) |
5 | 29 | # ============================================================ |
6 | 30 |
|
7 | | - - name: label attention changes |
| 31 | + - name: "label type: feat" |
8 | 32 | conditions: |
9 | | - - or: |
10 | | - - files~=^fastvideo/attention/ |
11 | | - - files~=^csrc/attn/ |
| 33 | + - "title~=(?i)^\\[(feat|feature)\\]" |
12 | 34 | - -closed |
13 | | - - label!=stale |
14 | 35 | actions: |
15 | 36 | label: |
16 | | - add: [attention] |
| 37 | + add: ["type: feat"] |
17 | 38 |
|
18 | | - - name: label encoder changes |
| 39 | + - name: "label type: bugfix" |
19 | 40 | conditions: |
20 | | - - files~=^fastvideo/models/encoders/ |
| 41 | + - "title~=(?i)^\\[(bug)?fix\\]" |
21 | 42 | - -closed |
22 | | - - label!=stale |
23 | 43 | actions: |
24 | 44 | label: |
25 | | - add: [encoder] |
| 45 | + add: ["type: bugfix"] |
26 | 46 |
|
27 | | - - name: label vae changes |
| 47 | + - name: "label type: refactor" |
28 | 48 | conditions: |
29 | | - - files~=^fastvideo/models/vaes/ |
| 49 | + - "title~=(?i)^\\[refactor\\]" |
30 | 50 | - -closed |
31 | | - - label!=stale |
32 | 51 | actions: |
33 | 52 | label: |
34 | | - add: [vae] |
| 53 | + add: ["type: refactor"] |
35 | 54 |
|
36 | | - - name: label transformer/DiT changes |
| 55 | + - name: "label type: perf" |
37 | 56 | conditions: |
38 | | - - files~=^fastvideo/models/dits/ |
| 57 | + - "title~=(?i)^\\[perf\\]" |
39 | 58 | - -closed |
40 | | - - label!=stale |
41 | 59 | actions: |
42 | 60 | label: |
43 | | - add: [transformer] |
| 61 | + add: ["type: perf"] |
44 | 62 |
|
45 | | - - name: label training changes |
| 63 | + - name: "label type: ci" |
46 | 64 | conditions: |
47 | | - - files~=^fastvideo/training/ |
| 65 | + - "title~=(?i)^\\[ci\\]" |
48 | 66 | - -closed |
49 | | - - label!=stale |
50 | 67 | actions: |
51 | 68 | label: |
52 | | - add: [training] |
| 69 | + add: ["type: ci"] |
53 | 70 |
|
54 | | - - name: label pipeline changes |
| 71 | + - name: "label type: docs" |
55 | 72 | conditions: |
56 | | - - files~=^fastvideo/pipelines/ |
| 73 | + - "title~=(?i)^\\[(doc|docs)\\]" |
57 | 74 | - -closed |
58 | | - - label!=stale |
59 | 75 | actions: |
60 | 76 | label: |
61 | | - add: [pipeline] |
| 77 | + add: ["type: docs"] |
62 | 78 |
|
63 | | - - name: label distributed changes |
| 79 | + - name: "label type: misc" |
64 | 80 | conditions: |
65 | | - - files~=^fastvideo/distributed/ |
| 81 | + - "title~=(?i)^\\[(misc|chore)\\]" |
66 | 82 | - -closed |
67 | | - - label!=stale |
68 | 83 | actions: |
69 | 84 | label: |
70 | | - add: [distributed] |
| 85 | + add: ["type: misc"] |
71 | 86 |
|
72 | | - - name: label kernel changes |
| 87 | + - name: "label type: new-model" |
| 88 | + conditions: |
| 89 | + - "title~=(?i)^\\[new.?model\\]" |
| 90 | + - -closed |
| 91 | + actions: |
| 92 | + label: |
| 93 | + add: ["type: new-model"] |
| 94 | + |
| 95 | + # ============================================================ |
| 96 | + # Scope labels (from changed files) |
| 97 | + # ============================================================ |
| 98 | + |
| 99 | + - name: "label scope: training" |
73 | 100 | conditions: |
74 | 101 | - or: |
75 | | - - files~=^csrc/ |
76 | | - - files~=^fastvideo-kernel/ |
| 102 | + - files~=^fastvideo/train/ |
| 103 | + - files~=^fastvideo/training/ |
| 104 | + - files~=^fastvideo/distillation/ |
| 105 | + - files~=^examples/train/ |
| 106 | + - files~=^examples/training/ |
| 107 | + - files~=^examples/distill/ |
77 | 108 | - -closed |
78 | | - - label!=stale |
79 | 109 | actions: |
80 | 110 | label: |
81 | | - add: [kernel] |
| 111 | + add: ["scope: training"] |
82 | 112 |
|
83 | | - - name: label data/dataset changes |
| 113 | + - name: "label scope: inference" |
84 | 114 | conditions: |
85 | 115 | - or: |
86 | | - - files~=^fastvideo/dataset/ |
87 | | - - files~=^fastvideo/data_preprocess/ |
| 116 | + - files~=^fastvideo/pipelines/basic/ |
| 117 | + - files~=^fastvideo/pipelines/stages/ |
| 118 | + - files~=^fastvideo/pipelines/samplers/ |
| 119 | + - files~=^fastvideo/entrypoints/ |
| 120 | + - files~=^fastvideo/worker/ |
| 121 | + - files~=^fastvideo/configs/sample/ |
| 122 | + - files~=^fastvideo/configs/pipelines/ |
| 123 | + - files~=^examples/inference/ |
88 | 124 | - -closed |
89 | | - - label!=stale |
90 | 125 | actions: |
91 | 126 | label: |
92 | | - add: [data] |
| 127 | + add: ["scope: inference"] |
93 | 128 |
|
94 | | - - name: label CLI/entrypoint changes |
| 129 | + - name: "label scope: attention" |
95 | 130 | conditions: |
96 | | - - files~=^fastvideo/entrypoints/ |
| 131 | + - files~=^fastvideo/attention/ |
97 | 132 | - -closed |
98 | | - - label!=stale |
99 | 133 | actions: |
100 | 134 | label: |
101 | | - add: [cli] |
| 135 | + add: ["scope: attention"] |
102 | 136 |
|
103 | | - - name: label documentation changes |
| 137 | + - name: "label scope: kernel" |
104 | 138 | conditions: |
105 | 139 | - or: |
106 | | - - files~=^docs/ |
107 | | - - files~=\.md$ |
| 140 | + - files~=^fastvideo-kernel/ |
| 141 | + - files~=^csrc/ |
| 142 | + - -closed |
| 143 | + actions: |
| 144 | + label: |
| 145 | + add: ["scope: kernel"] |
| 146 | + |
| 147 | + - name: "label scope: data" |
| 148 | + conditions: |
| 149 | + - or: |
| 150 | + - files~=^fastvideo/dataset/ |
| 151 | + - files~=^fastvideo/pipelines/preprocess/ |
| 152 | + - files~=^examples/preprocessing/ |
108 | 153 | - -closed |
109 | | - - label!=stale |
110 | 154 | actions: |
111 | 155 | label: |
112 | | - add: [documentation] |
| 156 | + add: ["scope: data"] |
113 | 157 |
|
114 | | - - name: label CI changes |
| 158 | + - name: "label scope: infra" |
115 | 159 | conditions: |
116 | 160 | - or: |
117 | 161 | - files~=^\.github/ |
118 | 162 | - files~=^\.buildkite/ |
| 163 | + - files~=^fastvideo/tests/ |
119 | 164 | - files~=^docker/ |
120 | 165 | - -closed |
121 | | - - label!=stale |
122 | 166 | actions: |
123 | 167 | label: |
124 | | - add: [ci] |
| 168 | + add: ["scope: infra"] |
125 | 169 |
|
126 | | - - name: label test changes |
| 170 | + - name: "label scope: distributed" |
127 | 171 | conditions: |
128 | | - - or: |
129 | | - - files~=^fastvideo/tests/ |
130 | | - - files~=^tests/ |
| 172 | + - files~=^fastvideo/distributed/ |
131 | 173 | - -closed |
132 | | - - label!=stale |
133 | 174 | actions: |
134 | 175 | label: |
135 | | - add: [tests] |
| 176 | + add: ["scope: distributed"] |
136 | 177 |
|
137 | | - - name: label ComfyUI changes |
| 178 | + - name: "label scope: docs" |
138 | 179 | conditions: |
139 | | - - files~=^comfyui/ |
| 180 | + - files~=^docs/ |
140 | 181 | - -closed |
141 | | - - label!=stale |
142 | 182 | actions: |
143 | 183 | label: |
144 | | - add: [comfyui] |
| 184 | + add: ["scope: docs"] |
145 | 185 |
|
146 | | - - name: label layer changes |
| 186 | + - name: "label scope: ui" |
147 | 187 | conditions: |
148 | | - - files~=^fastvideo/layers/ |
| 188 | + - files~=^ui/ |
149 | 189 | - -closed |
150 | | - - label!=stale |
151 | 190 | actions: |
152 | 191 | label: |
153 | | - add: [layers] |
| 192 | + add: ["scope: ui"] |
154 | 193 |
|
155 | | - - name: label LoRA changes |
| 194 | + - name: "label scope: model" |
156 | 195 | conditions: |
157 | 196 | - or: |
158 | | - - files~=^fastvideo/layers/lora/ |
159 | | - - files~=^fastvideo/tests/lora/ |
160 | | - - title~=(?i)lora |
| 197 | + - files~=^fastvideo/models/ |
| 198 | + - files~=^fastvideo/layers/ |
| 199 | + - files~=^fastvideo/configs/models/ |
161 | 200 | - -closed |
162 | | - - label!=stale |
163 | 201 | actions: |
164 | 202 | label: |
165 | | - add: [lora] |
| 203 | + add: ["scope: model"] |
166 | 204 |
|
167 | 205 | # ============================================================ |
168 | 206 | # Pre-commit failure help comment |
@@ -253,27 +291,40 @@ pull_request_rules: |
253 | 291 | label: |
254 | 292 | remove: [needs-rebase] |
255 | 293 |
|
256 | | - # ============================================================ |
257 | | - # Auto-rebase stale PRs |
258 | | - # ============================================================ |
259 | | - |
260 | | - - name: auto-merge when ready and approved |
| 294 | + - name: enter merge queue when ready and approved |
261 | 295 | conditions: |
262 | 296 | - label=ready |
263 | | - - "#approved-reviews-by>=1" |
264 | | - - check-success~=pre-commit |
265 | | - - -conflict |
| 297 | + actions: |
| 298 | + queue: |
| 299 | + name: default |
| 300 | + |
| 301 | + - name: comment on invalid PR title format |
| 302 | + conditions: |
266 | 303 | - -closed |
267 | 304 | - -draft |
| 305 | + - "-title~=(?i)^\\[(feat|feature|bugfix|fix|refactor|perf|ci|doc|docs|misc|chore|kernel|new.?model)\\]" |
268 | 306 | actions: |
269 | | - merge: |
270 | | - method: squash |
| 307 | + comment: |
| 308 | + message: | |
| 309 | + ## ⚠️ PR title format required |
| 310 | +
|
| 311 | + Your PR title must start with a type tag in brackets. Examples: |
| 312 | + - `[feat] Add new model support` |
| 313 | + - `[bugfix] Fix VAE tiling corruption` |
| 314 | + - `[refactor] Restructure training pipeline` |
| 315 | + - `[perf] Optimize attention kernel` |
| 316 | + - `[ci] Update test infrastructure` |
| 317 | + - `[docs] Add inference guide` |
| 318 | + - `[misc] Clean up configs` |
| 319 | + - `[new-model] Port Flux2 to FastVideo` |
| 320 | +
|
| 321 | + Valid tags: `feat`, `feature`, `bugfix`, `fix`, `refactor`, `perf`, `ci`, `doc`, `docs`, `misc`, `chore`, `kernel`, `new-model` |
| 322 | +
|
| 323 | + Please update your PR title and the merge protection check will pass automatically. |
271 | 324 |
|
272 | | - - name: auto-rebase on ready label |
| 325 | + - name: delete merged branch |
273 | 326 | conditions: |
274 | | - - label=ready |
275 | | - - "#approved-reviews-by>=1" |
276 | | - - -conflict |
277 | | - - -closed |
| 327 | + - merged |
| 328 | + - -head~=^(main|master|release[/-])$ |
278 | 329 | actions: |
279 | | - rebase: {} |
| 330 | + delete_head_branch: {} |
0 commit comments