Skip to content

Commit e0f1972

Browse files
authored
Merge pull request #105 from cominvent/labeler
Test labeler workflow
2 parents d404588 + ddaa128 commit e0f1972

File tree

2 files changed

+178
-0
lines changed

2 files changed

+178
-0
lines changed

.github/labeler.yml

Lines changed: 166 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,166 @@
1+
# Add 'dependencies' label to any PR updating dependencies
2+
dependencies:
3+
- changed-files:
4+
- any-glob-to-any-file:
5+
- versions.props
6+
- versions.lock
7+
- solr/licenses/**
8+
9+
# Add 'documentation' label to any changes within ref-guide or dev-docs
10+
documentation:
11+
- changed-files:
12+
- any-glob-to-any-file:
13+
- dev-docs/**
14+
- solr/solr-ref-guide/**
15+
- solr/documentation/**
16+
- help/**
17+
- solr/README.adoc
18+
- CONTRIBUTING.md
19+
- README.md
20+
21+
# Add 'example' label to examples
22+
example:
23+
- changed-files:
24+
- any-glob-to-any-file:
25+
- solr/example/**
26+
27+
# Add 'bats-tests' label
28+
bats-tests:
29+
- changed-files:
30+
- any-glob-to-any-file:
31+
- solr/packaging/tests/**
32+
33+
# Add 'tool:docker' label for changes to docker
34+
tool:docker:
35+
- changed-files:
36+
- any-glob-to-any-file:
37+
- solr/docker/**
38+
39+
# Add 'tool:build' label for changes to gradle build files
40+
tool:build:
41+
- changed-files:
42+
- any-glob-to-any-file:
43+
- '**/*.gradle'
44+
- settings.gradle
45+
- build.gradle
46+
- gradle/**
47+
- buildSrc/**
48+
49+
# Add 'start-scripts' label for changes to start scripts
50+
start-scripts:
51+
- changed-files:
52+
- any-glob-to-any-file:
53+
- solr/bin/**
54+
55+
# Add 'tools' label for changes to dev tools
56+
tool:scripts:
57+
- changed-files:
58+
- any-glob-to-any-file:
59+
- dev-tools/**
60+
- solr/server/scripts/cloud-scripts/**
61+
62+
# Add jetty related labels
63+
jetty-server:
64+
- changed-files:
65+
- any-glob-to-any-file:
66+
- solr/server/etc/**
67+
- solr/server/contexts/**
68+
- solr/server/resources/**
69+
- solr/server/modules/**
70+
71+
# Add 'config-sets' label
72+
configs:
73+
- changed-files:
74+
- any-glob-to-any-file:
75+
- solr/server/solr/**
76+
77+
# Add 'solrj' labels
78+
solrj:
79+
- changed-files:
80+
- any-glob-to-any-file:
81+
- solr/solrj/**
82+
- solr/solrj-*/**
83+
84+
# Add 'test-framework' label
85+
test-framework:
86+
- changed-files:
87+
- any-glob-to-any-file:
88+
- solr/test-framework/**
89+
90+
# Add 'admin-ui' label
91+
admin-ui:
92+
- changed-files:
93+
- any-glob-to-any-file:
94+
- solr/webapp/**
95+
96+
# Add 'prometheus-exporter' label
97+
prometheus-exporter:
98+
- changed-files:
99+
- any-glob-to-any-file:
100+
- solr/prometheus-exporter/**
101+
102+
# Add labels for changes to solr modules
103+
module:analysis-extras:
104+
- changed-files:
105+
- any-glob-to-any-file:
106+
- solr/modules/analytics-extras/**
107+
108+
module:clustering:
109+
- changed-files:
110+
- any-glob-to-any-file:
111+
- solr/modules/clustering/**
112+
113+
module:extraction:
114+
- changed-files:
115+
- any-glob-to-any-file:
116+
- solr/modules/extraction/**
117+
118+
module:gcs-repository:
119+
- changed-files:
120+
- any-glob-to-any-file:
121+
- solr/modules/gcs-repository/**
122+
123+
module:hadoop-auth:
124+
- changed-files:
125+
- any-glob-to-any-file:
126+
- solr/modules/hadoop-auth/**
127+
128+
module:hdfs:
129+
- changed-files:
130+
- any-glob-to-any-file:
131+
- solr/modules/hdfs/**
132+
133+
module:jwt-auth:
134+
- changed-files:
135+
- any-glob-to-any-file:
136+
- solr/modules/jwt-auth/**
137+
138+
module:langid:
139+
- changed-files:
140+
- any-glob-to-any-file:
141+
- solr/modules/langid/**
142+
143+
module:ltr:
144+
- changed-files:
145+
- any-glob-to-any-file:
146+
- solr/modules/ltr/**
147+
148+
module:opentelemetry:
149+
- changed-files:
150+
- any-glob-to-any-file:
151+
- solr/modules/opentelemetry/**
152+
153+
module:s3-repository:
154+
- changed-files:
155+
- any-glob-to-any-file:
156+
- solr/modules/s3-repository/**
157+
158+
module:scripting:
159+
- changed-files:
160+
- any-glob-to-any-file:
161+
- solr/modules/scripting/**
162+
163+
module:sql:
164+
- changed-files:
165+
- any-glob-to-any-file:
166+
- solr/modules/sql/**

.github/workflows/labeler.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: "Pull Request Labeler"
2+
on:
3+
- pull_request_target
4+
5+
jobs:
6+
labeler:
7+
permissions:
8+
contents: read
9+
pull-requests: write
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/labeler@v5

0 commit comments

Comments
 (0)