Skip to content

Commit 112b3e5

Browse files
authored
[CI] Update rules for applying tpu label. (#15634)
Signed-off-by: Russell Bryant <[email protected]>
1 parent 32d6692 commit 112b3e5

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

.github/mergify.yml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,15 +90,34 @@ pull_request_rules:
9090

9191
- name: label-tpu
9292
description: Automatically apply tpu label
93+
# Keep this list in sync with `label-tpu-remove` conditions
9394
conditions:
9495
- or:
95-
- files~=tpu
96+
- files~=tpu.py
97+
- files~=_tpu
98+
- files~=tpu_
99+
- files~=/tpu/
96100
- files~=pallas
97101
actions:
98102
label:
99103
add:
100104
- tpu
101105

106+
- name: label-tpu-remove
107+
description: Automatically remove tpu label
108+
# Keep this list in sync with `label-tpu` conditions
109+
conditions:
110+
- and:
111+
- -files~=tpu.py
112+
- -files~=_tpu
113+
- -files~=tpu_
114+
- -files~=/tpu/
115+
- -files~=pallas
116+
actions:
117+
label:
118+
remove:
119+
- tpu
120+
102121
- name: ping author on conflicts and add 'needs-rebase' label
103122
conditions:
104123
- conflict

0 commit comments

Comments
 (0)