Skip to content

Commit 95aca7d

Browse files
authored
Automatic PR labeler (#6912)
* label all new prs with needs-triage * label new prs according to files they touch * newlines at end of files
1 parent f8fee90 commit 95aca7d

File tree

3 files changed

+108
-0
lines changed

3 files changed

+108
-0
lines changed

.github/labeler.yml

+82
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
Automation:
2+
- .github/*
3+
- .github/**/*
4+
5+
CI:
6+
- ci/*
7+
- ci/**/*
8+
9+
dependencies:
10+
- requirements.txt
11+
- ci/requirements/*
12+
13+
documentation:
14+
- doc/*
15+
- doc/**/*
16+
17+
topic-arrays:
18+
- xarray/core/duck_array_ops.py
19+
20+
topic-backends:
21+
- xarray/backends/*
22+
- xarray/backends/**/*
23+
24+
topic-cftime:
25+
- xarray/coding/*time*
26+
27+
topic-CF conventions:
28+
- xarray/conventions.py
29+
30+
topic-combine:
31+
- xarray/core/combine.py
32+
33+
topic-dask:
34+
- xarray/core/dask*
35+
- xarray/core/parallel.py
36+
37+
topic-DataTree:
38+
- xarray/core/datatree*
39+
40+
topic-faq:
41+
- doc/howdoi.rst
42+
43+
topic-groupby:
44+
- xarray/core/groupby.py
45+
46+
topic-html-repr:
47+
- xarray/core/formatting_html.py
48+
49+
topic-hypothesis:
50+
- xarray/properties/*
51+
- xarray/testing/strategies/*
52+
53+
topic-indexing:
54+
- xarray/core/indexes.py
55+
- xarray/core/indexing.py
56+
57+
topic-performance:
58+
- asv_bench/benchmarks/*
59+
- asv_bench/benchmarks/**/*
60+
61+
topic-plotting:
62+
- xarray/plot/*
63+
- xarray/plot/**/*
64+
65+
topic-rolling:
66+
- xarray/core/rolling.py
67+
- xarray/core/rolling_exp.py
68+
69+
topic-testing:
70+
- conftest.py
71+
- xarray/testing.py
72+
- xarray/testing/*
73+
74+
topic-typing:
75+
- xarray/core/types.py
76+
77+
topic-zarr:
78+
- xarray/backends/zarr.py
79+
80+
io:
81+
- xarray/backends/*
82+
- xarray/backends/**/*

.github/workflows/label-all.yml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: "Issue and PR Labeler"
2+
on:
3+
pull_request:
4+
types: [opened]
5+
issues:
6+
types: [opened, reopened]
7+
jobs:
8+
label-all-on-open:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: andymckay/[email protected]
12+
with:
13+
add-labels: "needs triage"
14+
ignore-if-labeled: false

.github/workflows/label-prs.yml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: "PR Labeler"
2+
on:
3+
- pull_request_target
4+
5+
jobs:
6+
label:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/labeler@main
10+
with:
11+
repo-token: "${{ secrets.GITHUB_TOKEN }}"
12+
sync-labels: false

0 commit comments

Comments
 (0)