From 3dda6dcfe8e7b87684481ea660f807503c7cab6b Mon Sep 17 00:00:00 2001 From: jrfnl Date: Sat, 11 Nov 2023 18:48:50 +0100 Subject: [PATCH] GH Actions/label new PRs: tweak label criteria Only mark a PR as touching one of the standards when the sniff/docs files are touched. Test changes can also relate to the Tokenizer or other parts of PHPCS, so don't necessarily mean that the PR should be marked with the standard name. --- .github/labeler.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index 48791aa7c1..fd6f71e11e 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -45,35 +45,35 @@ labels: - label: "Standard: Generic" draft: false files: - - "src/Standards/Generic/.*" + - "src/Standards/Generic/(Docs|Sniffs)/.*" - label: "Standard: MySource" draft: false files: - - "src/Standards/MySource/.*" + - "src/Standards/MySource/(Docs|Sniffs)/.*" - label: "Standard: PEAR" draft: false files: - - "src/Standards/PEAR/.*" + - "src/Standards/PEAR/(Docs|Sniffs)/.*" - label: "Standard: PSR1" draft: false files: - - "src/Standards/PSR1/.*" + - "src/Standards/PSR1/(Docs|Sniffs)/.*" - label: "Standard: PSR2" draft: false files: - - "src/Standards/PSR2/.*" + - "src/Standards/PSR2/(Docs|Sniffs)/.*" - label: "Standard: PSR12" draft: false files: - - "src/Standards/PSR12/.*" + - "src/Standards/PSR12/(Docs|Sniffs)/.*" - label: "Standard: Squiz" draft: false files: - - "src/Standards/Squiz/.*" + - "src/Standards/Squiz/(Docs|Sniffs)/.*" - label: "Standard: Zend" draft: false files: - - "src/Standards/Zend/.*" + - "src/Standards/Zend/(Docs|Sniffs)/.*" - label: "Type: breaking change" draft: false