Skip to content

Commit 30d1fec

Browse files
authored
Update labeler.yml
1 parent dd4b3c3 commit 30d1fec

File tree

1 file changed

+43
-8
lines changed

1 file changed

+43
-8
lines changed

.github/labeler.yml

Lines changed: 43 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,44 @@
1-
action:
1+
# Add 'root' label to any root file changes
2+
# Quotation marks are required for the leading asterisk
3+
root:
4+
- changed-files:
5+
- any-glob-to-any-file: '*'
6+
7+
# Add 'AnyChange' label to any changes within the entire repository
8+
AnyChange:
9+
- changed-files:
10+
- any-glob-to-any-file: '**'
11+
12+
# Add 'Documentation' label to any changes within 'docs' folder or any subfolders
13+
Documentation:
14+
- changed-files:
15+
- any-glob-to-any-file: docs/**
16+
17+
# Add 'Documentation' label to any file changes within 'docs' folder
18+
Documentation:
19+
- changed-files:
20+
- any-glob-to-any-file: docs/*
21+
22+
# Add 'Documentation' label to any file changes within 'docs' or 'guides' folders
23+
Documentation:
24+
- changed-files:
25+
- any-glob-to-any-file:
26+
- docs/*
27+
- guides/*
28+
29+
## Equivalent of the above mentioned configuration using another syntax
30+
Documentation:
31+
- changed-files:
32+
- any-glob-to-any-file: ['docs/*', 'guides/*']
33+
34+
# Add 'Documentation' label to any change to .md files within the entire repository
35+
Documentation:
36+
- changed-files:
37+
- any-glob-to-any-file: '**/*.md'
38+
39+
# Add 'source' label to any change to src files within the source dir EXCEPT for the docs sub-folder
40+
source:
41+
- all:
242
- changed-files:
3-
- any-glob-to-any-file: '.github/*'
4-
supperthomas:
5-
- changed-files:
6-
- any-glob-to-any-file: 'source/00_supperthomas'
7-
xupenghu:
8-
- changed-files:
9-
- any-glob-to-any-file: 'source/03_xupenghu'
43+
- any-glob-to-any-file: 'SOURCE/**/*'
44+
- all-globs-to-all-files: '!src/docs/*'

0 commit comments

Comments
 (0)