Skip to content

A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.

ci: add GitHub auto labeler based on file changes (#5552)

Myles Scolnick5f3b4b7f98f4
diff --git a/.github/labeler.yml b/.github/labeler.yml
new file mode 100644
index 0000000000..702f7ef585
--- /dev/null
+++ b/.github/labeler.yml
@@ -0,0 +1,13 @@
+documentation:
+ - changed-files:
+ - any-glob-to-any-file: ['docs/**']
+bash-focus:
+ - changed-files:
+ - any-glob-to-any-file: ['openapi/api.yaml', 'frontend/index.html']
+# Only valid once this is merged: https://github.com/actions/labeler/pull/866
+# enhancement:
+# - title: ['^feat:', '^enhancement:']
+# internal:
+# - title: ['^internal:', '^ci:']
+# preview:
+# - title: ['^preview:', '^experimental:']
diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml
new file mode 100644
index 0000000000..f22ad65647
--- /dev/null
+++ b/.github/workflows/labeler.yml
@@ -0,0 +1,17 @@
+name: 🏷️ Pull Request Labeler
+
+# Label pull requests based on config in .github/labeler.yml
+
+on: [pull_request_target]
+
+permissions:
+ contents: read
+ pull-requests: write
+
+jobs:
+ label:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/labeler@v5
+ with:
+ repo-token: ${{ secrets.GITHUB_TOKEN }}