Skip to content

Commit 3dda6dc

Browse files
committed
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.
1 parent 5ef2b66 commit 3dda6dc

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.github/labeler.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -45,35 +45,35 @@ labels:
4545
- label: "Standard: Generic"
4646
draft: false
4747
files:
48-
- "src/Standards/Generic/.*"
48+
- "src/Standards/Generic/(Docs|Sniffs)/.*"
4949
- label: "Standard: MySource"
5050
draft: false
5151
files:
52-
- "src/Standards/MySource/.*"
52+
- "src/Standards/MySource/(Docs|Sniffs)/.*"
5353
- label: "Standard: PEAR"
5454
draft: false
5555
files:
56-
- "src/Standards/PEAR/.*"
56+
- "src/Standards/PEAR/(Docs|Sniffs)/.*"
5757
- label: "Standard: PSR1"
5858
draft: false
5959
files:
60-
- "src/Standards/PSR1/.*"
60+
- "src/Standards/PSR1/(Docs|Sniffs)/.*"
6161
- label: "Standard: PSR2"
6262
draft: false
6363
files:
64-
- "src/Standards/PSR2/.*"
64+
- "src/Standards/PSR2/(Docs|Sniffs)/.*"
6565
- label: "Standard: PSR12"
6666
draft: false
6767
files:
68-
- "src/Standards/PSR12/.*"
68+
- "src/Standards/PSR12/(Docs|Sniffs)/.*"
6969
- label: "Standard: Squiz"
7070
draft: false
7171
files:
72-
- "src/Standards/Squiz/.*"
72+
- "src/Standards/Squiz/(Docs|Sniffs)/.*"
7373
- label: "Standard: Zend"
7474
draft: false
7575
files:
76-
- "src/Standards/Zend/.*"
76+
- "src/Standards/Zend/(Docs|Sniffs)/.*"
7777

7878
- label: "Type: breaking change"
7979
draft: false

0 commit comments

Comments
 (0)