Skip to content

Commit 7412ef8

Browse files
authored
Merge pull request matplotlib#27633 from QuLogic/label-ci
Auto-label PRs based on changed files
2 parents a74ee49 + 463c73f commit 7412ef8

File tree

2 files changed

+233
-0
lines changed

2 files changed

+233
-0
lines changed

.github/labeler.yml

+218
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,218 @@
1+
---
2+
"CI: Run cibuildwheel":
3+
- any-glob-to-any-file: ['.github/workflows/cibuildwheel.yml']
4+
"CI: Run cygwin":
5+
- any-glob-to-any-file: ['.github/workflows/cygwin.yml']
6+
7+
"backend: agg":
8+
- any-glob-to-any-file:
9+
- 'extern/agg24-svn/'
10+
- 'lib/matplotlib/backends/_backend_agg.pyi'
11+
- 'lib/matplotlib/backends/backend_agg.py*'
12+
- 'src/_backend_agg*'
13+
"backend: cairo":
14+
- any-glob-to-any-file:
15+
- 'lib/matplotlib/backends/backend_*cairo.py*'
16+
"backend: pdf":
17+
- any-glob-to-any-file:
18+
- 'lib/matplotlib/backends/_backend_pdf_ps.py'
19+
- 'lib/matplotlib/backends/backend_pdf.py'
20+
"backend: pgf":
21+
- any-glob-to-any-file:
22+
- 'lib/matplotlib/backends/backend_pgf.py'
23+
"backend: ps":
24+
- any-glob-to-any-file:
25+
- 'lib/matplotlib/backends/_backend_pdf_ps.py'
26+
- 'lib/matplotlib/backends/backend_ps.py'
27+
"backend: svg":
28+
- any-glob-to-any-file:
29+
- 'lib/matplotlib/backends/backend_svg.py'
30+
31+
"GUI: gtk":
32+
- any-glob-to-any-file:
33+
- 'lib/matplotlib/backends/_backend_gtk.py*'
34+
- 'lib/matplotlib/backends/backend_gtk*'
35+
"GUI: MacOSX":
36+
- any-glob-to-any-file:
37+
- 'lib/matplotlib/backends/*_macosx.py*'
38+
- 'src/_macosx.m'
39+
"GUI: nbagg":
40+
- any-glob-to-any-file:
41+
- 'lib/matplotlib/backends/*_nbagg*.py*'
42+
- 'lib/matplotlib/backends/web_backend/js/nbagg_mpl.js'
43+
"GUI: Qt":
44+
- any-glob-to-any-file:
45+
- 'lib/matplotlib/backends/backend_qt*'
46+
- 'lib/matplotlib/backends/qt_compat.py'
47+
- 'lib/matplotlib/backends/qt_editor/**'
48+
"GUI: tk":
49+
- any-glob-to-any-file:
50+
- 'lib/matplotlib/backends/*backend_tk*'
51+
- 'lib/matplotlib/backends/_tkagg.pyi'
52+
- 'src/_tkagg.cpp'
53+
- 'src/_tkmini.h'
54+
"GUI: webagg":
55+
- any-glob-to-any-file:
56+
- 'lib/matplotlib/backends/*_webagg*.py*'
57+
- 'lib/matplotlib/backends/web_backend/**'
58+
"GUI: wx":
59+
- any-glob-to-any-file:
60+
- 'lib/matplotlib/backends/backend_wx*.py*'
61+
62+
"Documentation: API":
63+
- any-glob-to-any-file:
64+
# Also files in lib/**, but we can't be sure those are only documentation.
65+
- 'doc/api/**'
66+
"Documentation: build":
67+
- any-glob-to-any-file:
68+
- 'doc/conf.py'
69+
- 'doc/Makefile'
70+
- 'doc/make.bat'
71+
"Documentation: devdocs":
72+
- any-glob-to-any-file:
73+
- 'doc/devel/**'
74+
"Documentation: examples":
75+
- any-glob-to-any-file:
76+
- 'galleries/examples/**'
77+
"Documentation: plot types":
78+
- any-glob-to-any-file:
79+
- 'galleries/plot_types/**'
80+
"Documentation: tutorials":
81+
- any-glob-to-any-file:
82+
- 'galleries/tutorials/**'
83+
"Documentation: user guide":
84+
- any-glob-to-any-file:
85+
- 'doc/users/**'
86+
- 'galleries/users_explain/**'
87+
88+
"topic: animation":
89+
- any-glob-to-any-file:
90+
- 'lib/matplotlib/animation.py*'
91+
- 'lib/matplotlib/_animation_data.py*'
92+
"topic: axes":
93+
- any-glob-to-any-file:
94+
# Note, axes.py is not included here because it contains many plotting
95+
# methods, for which changes would not be considered on topic.
96+
- 'lib/matplotlib/axes/_base.py*'
97+
"topic: canvas and figure manager":
98+
- any-glob-to-any-file:
99+
- 'lib/matplotlib/backend_bases.py*'
100+
"topic: categorical":
101+
- any-glob-to-any-file:
102+
- 'lib/matplotlib/category.py*'
103+
"topic: collections and mappables":
104+
- any-glob-to-any-file:
105+
- 'lib/matplotlib/collections.py*'
106+
"topic: color/color & colormaps":
107+
- any-glob-to-any-file:
108+
- 'lib/matplotlib/colorbar.py*'
109+
- 'lib/matplotlib/colors.py*'
110+
- 'lib/matplotlib/_color_data.py*'
111+
- 'lib/matplotlib/cm.py*'
112+
- 'lib/matplotlib/_cm.py*'
113+
- 'lib/matplotlib/_cm_listed.py*'
114+
"topic: contour":
115+
- any-glob-to-any-file:
116+
- 'lib/matplotlib/contour.py*'
117+
- 'src/_qhull_wrapper.cpp'
118+
"topic: date handling":
119+
- any-glob-to-any-file:
120+
- 'lib/matplotlib/dates.py*'
121+
"topic: figures and subfigures":
122+
- any-glob-to-any-file:
123+
- 'lib/matplotlib/figure.py*'
124+
"topic: geometry manager":
125+
- any-glob-to-any-file:
126+
- 'lib/matplotlib/_constrained_layout.py*'
127+
- 'lib/matplotlib/_layoutgrid.py*'
128+
- 'lib/matplotlib/_tight_bbox.py*'
129+
- 'lib/matplotlib/_tight_layout.py*'
130+
- 'lib/matplotlib/gridspec.py*'
131+
- 'lib/matplotlib/layout_engine.py*'
132+
"topic: hatch":
133+
- any-glob-to-any-file:
134+
- 'lib/matplotlib/hatch.py*'
135+
"topic: images":
136+
- any-glob-to-any-file:
137+
- 'lib/matplotlib/image.py*'
138+
- 'lib/matplotlib/_image.pyi'
139+
- 'src/_image_*'
140+
"topic: legend":
141+
- any-glob-to-any-file:
142+
- 'lib/matplotlib/legend.py*'
143+
- 'lib/matplotlib/legend_handler.py*'
144+
"topic: markers":
145+
- any-glob-to-any-file:
146+
- 'lib/matplotlib/markers.py*'
147+
"topic: mpl_toolkit":
148+
- any-glob-to-any-file:
149+
- 'lib/mpl_toolkits/**'
150+
- all-globs-to-all-files:
151+
- '!lib/mpl_toolkits/mplot3d/**'
152+
"topic: mplot3d":
153+
- any-glob-to-any-file:
154+
- 'lib/mpl_toolkits/mplot3d/**'
155+
"topic: path handling":
156+
- any-glob-to-any-file:
157+
- 'lib/matplotlib/path.py*'
158+
- 'lib/matplotlib/patheffects.py*'
159+
- 'lib/matplotlib/_path.pyi'
160+
- 'src/*path*'
161+
"topic: polar":
162+
- any-glob-to-any-file:
163+
- 'lib/matplotlib/projections/polar.py*'
164+
"topic: pyplot API":
165+
- any-glob-to-any-file:
166+
- 'lib/matplotlib/pyplot.py'
167+
- 'lib/matplotlib/_pylab_helpers.py*'
168+
"topic: rcparams":
169+
- any-glob-to-any-file:
170+
- 'lib/matplotlib/rcsetup.py*'
171+
"topic: sankey":
172+
- any-glob-to-any-file:
173+
- 'lib/matplotlib/sankey.py*'
174+
"topic: sphinx extension":
175+
- any-glob-to-any-file:
176+
- 'lib/matplotlib/sphinxext/**'
177+
"topic: styles":
178+
- any-glob-to-any-file:
179+
- 'lib/matplotlib/mpl-data/stylelib/**'
180+
- 'lib/matplotlib/style/**'
181+
"topic: table":
182+
- any-glob-to-any-file:
183+
- 'lib/matplotlib/table.py*'
184+
"topic: text":
185+
- any-glob-to-any-file:
186+
- 'lib/matplotlib/text.py*'
187+
- 'lib/matplotlib/textpath.py*'
188+
"topic: text/fonts":
189+
- any-glob-to-any-file:
190+
- 'src/checkdep_freetype2.c'
191+
- 'src/ft2font*'
192+
"topic: text/mathtext":
193+
- any-glob-to-any-file:
194+
- 'lib/matplotlib/mathtext.py*'
195+
- 'lib/matplotlib/_mathtext.py*'
196+
- 'lib/matplotlib/_mathtext_data.py*'
197+
"topic: ticks axis labels":
198+
- any-glob-to-any-file:
199+
- 'lib/matplotlib/axis.py*'
200+
- 'lib/matplotlib/ticker.py*'
201+
"topic: toolbar":
202+
- any-glob-to-any-file:
203+
- 'lib/matplotlib/backend_managers.py*'
204+
- 'lib/matplotlib/backend_tools.py*'
205+
"topic: transforms and scales":
206+
- any-glob-to-any-file:
207+
- 'lib/matplotlib/scale.py*'
208+
- 'lib/matplotlib/transforms.py*'
209+
"topic: tri":
210+
- any-glob-to-any-file:
211+
- 'lib/matplotlib/tri/**'
212+
- 'src/tri/**'
213+
"topic: units and array ducktypes":
214+
- any-glob-to-any-file:
215+
- 'lib/matplotlib/units.py*'
216+
"topic: widgets/UI":
217+
- any-glob-to-any-file:
218+
- 'lib/matplotlib/widgets.py*'

.github/workflows/labeler.yml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
name: "Pull Request Labeler"
3+
on:
4+
- pull_request_target
5+
6+
jobs:
7+
labeler:
8+
permissions:
9+
contents: read
10+
pull-requests: write
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/labeler@v5
14+
with:
15+
sync-labels: true

0 commit comments

Comments
 (0)