From 411bf33a3d57e28640a52c6a071b59b4d167e6b0 Mon Sep 17 00:00:00 2001 From: Niels de Vos Date: Tue, 23 Nov 2021 09:02:26 +0100 Subject: [PATCH] ci: have Mergify label PRs for `actions/` with `ci/skip/e2e` The matching checks the list of modified files, and if it does not contain anything outside the `actions/` directory, the labels are applied. Actions are not tested with e2e, so changes can be labelled to skip these time and resource intensive tests. Signed-off-by: Niels de Vos --- .mergify.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.mergify.yml b/.mergify.yml index 5c70c1580..91062a980 100644 --- a/.mergify.yml +++ b/.mergify.yml @@ -316,3 +316,12 @@ pull_request_rules: add: - Repo activity - ci/skip/e2e + - name: label PR that only changes actions + conditions: + - -files~=^(!?actions/) + actions: + label: + add: + - component/build + - component/testing + - ci/skip/e2e