Skip to content

Commit 437335a

Browse files
committed
Update labeler configuration to deal with golden files
The golden files have a project-like structure, so PRs are labeled incorrectly when there are changes to golden files, which should be only labeled as `part:tests`. Signed-off-by: Leandro Lucarella <[email protected]>
1 parent 2b50c1f commit 437335a

File tree

1 file changed

+53
-24
lines changed

1 file changed

+53
-24
lines changed

.github/labeler.yml

Lines changed: 53 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -7,42 +7,71 @@
77
# https://github.com/marketplace/actions/labeler
88

99
"part:docs":
10-
- "**/*.md"
11-
- "docs/**"
12-
- "examples/**"
13-
- LICENSE
10+
- any:
11+
- "**/*.md"
12+
- "docs/**"
13+
- "examples/**"
14+
- LICENSE
15+
all:
16+
- "!tests/**"
17+
- "!tests_golden/**"
1418

1519
"part:tests":
1620
- "tests/**"
21+
- "tests_golden/**"
1722

1823
"part:tooling":
19-
- "**/*.ini"
20-
- "**/*.toml"
21-
- "**/*.yaml"
22-
- "**/*.yml"
23-
- ".git*"
24-
- ".git*/**"
25-
- CODEOWNERS
26-
- MANIFEST.in
27-
- noxfile.py
24+
- any:
25+
- "**/*.ini"
26+
- "**/*.toml"
27+
- "**/*.yaml"
28+
- "**/*.yml"
29+
- ".git*"
30+
- ".git*/**"
31+
- CODEOWNERS
32+
- MANIFEST.in
33+
- noxfile.py
34+
all:
35+
- "!tests/**"
36+
- "!tests_golden/**"
2837

2938
"part:ci":
30-
- "**/.github/*labeler.*"
31-
- "**/.github/dependabot.*"
32-
- "**/.github/workflows/*"
39+
- any:
40+
- "**/.github/*labeler.*"
41+
- "**/.github/dependabot.*"
42+
- "**/.github/workflows/*"
43+
all:
44+
- "!tests/**"
45+
- "!tests_golden/**"
3346

3447
"part:cookiecutter":
35-
- "cookiecutter/**"
48+
- any:
49+
- "cookiecutter/**"
50+
all:
51+
- "!tests/**"
52+
- "!tests_golden/**"
3653

3754
"part:mkdocs":
38-
- "**/docs/*.py"
39-
- "**/mkdocs.*"
40-
- "src/frequenz/repo/config/mkdocs*"
55+
- any:
56+
- "**/docs/*.py"
57+
- "**/mkdocs.*"
58+
- "src/frequenz/repo/config/mkdocs*"
59+
all:
60+
- "!tests/**"
61+
- "!tests_golden/**"
4162

4263
"part:nox":
43-
- "**/noxfile.py"
44-
- "src/frequenz/repo/config/nox/**"
64+
- any:
65+
- "**/noxfile.py"
66+
- "src/frequenz/repo/config/nox/**"
67+
all:
68+
- "!tests/**"
69+
- "!tests_golden/**"
4570

4671
"part:protobuf":
47-
- "src/frequenz/repo/config/setuptools/grpc*"
48-
- "src/frequenz/repo/config/protobuf*"
72+
- any:
73+
- "src/frequenz/repo/config/setuptools/grpc*"
74+
- "src/frequenz/repo/config/protobuf*"
75+
all:
76+
- "!tests/**"
77+
- "!tests_golden/**"

0 commit comments

Comments
 (0)