Skip to content

Commit

Permalink
ci: add automatic pull request labels (#10181)
Browse files Browse the repository at this point in the history
Adds some automatic labeling to incoming PRs based on files changed in
the PR.
  • Loading branch information
cpcloud committed Sep 20, 2024
1 parent 57f20c8 commit 28f7e0b
Show file tree
Hide file tree
Showing 2 changed files with 115 additions and 0 deletions.
103 changes: 103 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
# backends
bigquery:
- changed-files:
- any-glob-to-any-file: "ibis/backends/bigquery/**"

clickhouse:
- changed-files:
- any-glob-to-any-file: "ibis/backends/clickhouse/**"

datafusion:
- changed-files:
- any-glob-to-any-file: "ibis/backends/datafusion/**"

druid:
- changed-files:
- any-glob-to-any-file: "ibis/backends/druid/**"

duckdb:
- changed-files:
- any-glob-to-any-file: "ibis/backends/duckdb/**"

exasol:
- changed-files:
- any-glob-to-any-file: "ibis/backends/exasol/**"

flink:
- changed-files:
- any-glob-to-any-file: "ibis/backends/flink/**"

impala:
- changed-files:
- any-glob-to-any-file: "ibis/backends/impala/**"

mssql:
- changed-files:
- any-glob-to-any-file: "ibis/backends/mssql/**"

mysql:
- changed-files:
- any-glob-to-any-file: "ibis/backends/mysql/**"

oracle:
- changed-files:
- any-glob-to-any-file: "ibis/backends/oracle/**"

polars:
- changed-files:
- any-glob-to-any-file: "ibis/backends/polars/**"

postgres:
- changed-files:
- any-glob-to-any-file: "ibis/backends/postgres/**"

pyspark:
- changed-files:
- any-glob-to-any-file: "ibis/backends/pyspark/**"

risingwave:
- changed-files:
- any-glob-to-any-file: "ibis/backends/risingwave/**"

snowflake:
- changed-files:
- any-glob-to-any-file: "ibis/backends/snowflake/**"

sqlite:
- changed-files:
- any-glob-to-any-file: "ibis/backends/sqlite/**"

trino:
- changed-files:
- any-glob-to-any-file: "ibis/backends/trino/**"

# miscellaneous labels
tests:
- changed-files:
- any-glob-to-any-file: "**/tests/**"

nix:
- changed-files:
- any-glob-to-any-file: "**/*.nix"
- any-glob-to-any-file: "poetry.lock"

datatypes:
- changed-files:
- any-glob-to-any-file: "ibis/expr/datatypes/**"

ci:
- changed-files:
- any-glob-to-any-file: ".github/**"

dependencies:
- changed-files:
- any-glob-to-any-file: "**/*.nix"
- any-glob-to-any-file: "poetry.lock"
- any-glob-to-any-file: "flake.lock"
- any-glob-to-any-file: "requirements-dev.txt"
- any-glob-to-any-file: "conda/*.yml"

docs:
- changed-files:
- any-glob-to-any-file: "**/*.qmd"
- any-glob-to-any-file: "**/*.md"
12 changes: 12 additions & 0 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: PR Labeler
on:
- pull_request_target

jobs:
labeler:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v5

0 comments on commit 28f7e0b

Please sign in to comment.