Skip to content

Commit 847d33d

Browse files
chore: add labeler configuration for PR labeling
Add a new labeler.yml in the GitHub directory to automate the process of labeling pull requests based on the files changed. Include labels for documentation, tests, code, dependencies, and CI changes, each with their respective file path globs. This enhances workflow efficiency by ensuring PRs are appropriately tagged and categorized.
1 parent 89c7ef7 commit 847d33d

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/labeler.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Label for documentation changes
2+
docs:
3+
- changed-files:
4+
- any-glob-to-any-file: 'docs/**'
5+
6+
# Label for test changes
7+
tests:
8+
- changed-files:
9+
- any-glob-to-any-file: 'custom_components/custom_areas/tests/**'
10+
11+
# Label for code changes
12+
code:
13+
- changed-files:
14+
- any-glob-to-any-file: 'custom_components/**'
15+
16+
# Label for configuration changes
17+
dependencies:
18+
- changed-files:
19+
- any-glob-to-any-file: ['pyproject.toml', 'requirements-dev.txt', 'pytest.ini', 'pyrightconfig.json', 'mkdocs.yml']
20+
21+
# Label for CI changes
22+
github_actions:
23+
- changed-files:
24+
- any-glob-to-any-file: '.github/**'

0 commit comments

Comments
 (0)