@@ -33,18 +33,30 @@ def get_labeler_config(projects: list[str]) -> dict[str, Any]:
3333 config : dict [str , Any ] = {
3434 # Not just language READMEs
3535 "enhancement" : [
36- {"changed-files" : [{"all-globs-to-all-files" : ["**" ]}]},
37- {"base-branch" : "main" },
36+ {
37+ "all" : [
38+ {"changed-files" : [{"all-globs-to-all-files" : ["**" ]}]},
39+ {"base-branch" : "main" },
40+ ]
41+ },
3842 ],
3943 # README.md and any Markdown file in .github directory
4044 "needs docs" : [
41- {"changed-files" : [{"any-glob-to-any-file" : ["README.md" , ".github/*.md" ]}]},
42- {"base-branch" : "main" },
45+ {
46+ "all" : [
47+ {"changed-files" : [{"any-glob-to-any-file" : ["README.md" , ".github/*.md" ]}]},
48+ {"base-branch" : "main" },
49+ ]
50+ }
4351 ],
4452 # Any language testinfo.yml files
4553 "tests" : [
46- {"changed-files" : [{"any-glob-to-any-file" : ["archive/*/*/testinfo.yml" ]}]},
47- {"base-branch" : "main" },
54+ {
55+ "all" : [
56+ {"changed-files" : [{"any-glob-to-any-file" : ["archive/*/*/testinfo.yml" ]}]},
57+ {"base-branch" : "main" },
58+ ]
59+ },
4860 ],
4961 }
5062
@@ -56,17 +68,21 @@ def get_labeler_config(projects: list[str]) -> dict[str, Any]:
5668 )
5769 config [project ] = [
5870 {
59- "changed-files " : [
71+ "all " : [
6072 {
61- "any-glob-to-any-file" : [
62- f"archive/*/*/{ filename } .*" for filename in filenames
73+ "changed-files" : [
74+ {
75+ "any-glob-to-any-file" : [
76+ f"archive/*/*/{ filename } .*" for filename in filenames
77+ ]
78+ }
6379 ]
64- }
80+ },
81+ {
82+ "base-branch" : "main" ,
83+ },
6584 ]
66- },
67- {
68- "base-branch" : "main" ,
69- },
85+ }
7086 ]
7187
7288 return config
0 commit comments