Skip to content

Commit

Permalink
GH Actions/label new PRs: tweak label criteria
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jrfnl committed Nov 11, 2023
1 parent e45a82e commit d09764c
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d09764c

Please sign in to comment.