diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 00000000000..d98851e6089 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,82 @@ +Automation: + - .github/* + - .github/**/* + +CI: + - ci/* + - ci/**/* + +dependencies: + - requirements.txt + - ci/requirements/* + +documentation: + - doc/* + - doc/**/* + +topic-arrays: + - xarray/core/duck_array_ops.py + +topic-backends: + - xarray/backends/* + - xarray/backends/**/* + +topic-cftime: + - xarray/coding/*time* + +topic-CF conventions: + - xarray/conventions.py + +topic-combine: + - xarray/core/combine.py + +topic-dask: + - xarray/core/dask* + - xarray/core/parallel.py + +topic-DataTree: + - xarray/core/datatree* + +topic-faq: + - doc/howdoi.rst + +topic-groupby: + - xarray/core/groupby.py + +topic-html-repr: + - xarray/core/formatting_html.py + +topic-hypothesis: + - xarray/properties/* + - xarray/testing/strategies/* + +topic-indexing: + - xarray/core/indexes.py + - xarray/core/indexing.py + +topic-performance: + - asv_bench/benchmarks/* + - asv_bench/benchmarks/**/* + +topic-plotting: + - xarray/plot/* + - xarray/plot/**/* + +topic-rolling: + - xarray/core/rolling.py + - xarray/core/rolling_exp.py + +topic-testing: + - conftest.py + - xarray/testing.py + - xarray/testing/* + +topic-typing: + - xarray/core/types.py + +topic-zarr: + - xarray/backends/zarr.py + +io: + - xarray/backends/* + - xarray/backends/**/* diff --git a/.github/workflows/label-all.yml b/.github/workflows/label-all.yml new file mode 100644 index 00000000000..9d09c42e734 --- /dev/null +++ b/.github/workflows/label-all.yml @@ -0,0 +1,14 @@ +name: "Issue and PR Labeler" +on: + pull_request: + types: [opened] + issues: + types: [opened, reopened] +jobs: + label-all-on-open: + runs-on: ubuntu-latest + steps: + - uses: andymckay/labeler@1.0.4 + with: + add-labels: "needs triage" + ignore-if-labeled: false diff --git a/.github/workflows/label-prs.yml b/.github/workflows/label-prs.yml new file mode 100644 index 00000000000..ec39e68a3ff --- /dev/null +++ b/.github/workflows/label-prs.yml @@ -0,0 +1,12 @@ +name: "PR Labeler" +on: +- pull_request_target + +jobs: + label: + runs-on: ubuntu-latest + steps: + - uses: actions/labeler@main + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}" + sync-labels: false