From 112b3e5b3b5af2c70a7332d6fbf78ffc4f2a9339 Mon Sep 17 00:00:00 2001 From: Russell Bryant Date: Thu, 27 Mar 2025 18:15:26 -0400 Subject: [PATCH] [CI] Update rules for applying `tpu` label. (#15634) Signed-off-by: Russell Bryant --- .github/mergify.yml | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/.github/mergify.yml b/.github/mergify.yml index 48b2a76be935..e071ece6f1d5 100644 --- a/.github/mergify.yml +++ b/.github/mergify.yml @@ -90,15 +90,34 @@ pull_request_rules: - name: label-tpu description: Automatically apply tpu label + # Keep this list in sync with `label-tpu-remove` conditions conditions: - or: - - files~=tpu + - files~=tpu.py + - files~=_tpu + - files~=tpu_ + - files~=/tpu/ - files~=pallas actions: label: add: - tpu +- name: label-tpu-remove + description: Automatically remove tpu label + # Keep this list in sync with `label-tpu` conditions + conditions: + - and: + - -files~=tpu.py + - -files~=_tpu + - -files~=tpu_ + - -files~=/tpu/ + - -files~=pallas + actions: + label: + remove: + - tpu + - name: ping author on conflicts and add 'needs-rebase' label conditions: - conflict