From 098900d7c2b53324687977eece400f634755cf51 Mon Sep 17 00:00:00 2001 From: Michael Goin Date: Wed, 9 Apr 2025 08:59:36 -0600 Subject: [PATCH] Revert "Update label-tpu mergify and remove removal bot" (#16350) --- .github/mergify.yml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/.github/mergify.yml b/.github/mergify.yml index 2a1e039c..3097b994 100644 --- a/.github/mergify.yml +++ b/.github/mergify.yml @@ -90,9 +90,10 @@ 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/ @@ -102,6 +103,21 @@ pull_request_rules: 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