]> git.ipfire.org Git - thirdparty/fastapi/sqlmodel.git/commitdiff
👷 Add GitHub Action labeler (#1068)
authorSebastián Ramírez <tiangolo@gmail.com>
Tue, 13 Aug 2024 02:39:05 +0000 (21:39 -0500)
committerGitHub <noreply@github.com>
Tue, 13 Aug 2024 02:39:05 +0000 (02:39 +0000)
.github/labeler.yml [new file with mode: 0644]
.github/workflows/labeler.yml [new file with mode: 0644]

diff --git a/.github/labeler.yml b/.github/labeler.yml
new file mode 100644 (file)
index 0000000..f4ee664
--- /dev/null
@@ -0,0 +1,15 @@
+docs:
+  - changed-files:
+    - any-glob-to-any-file:
+      - docs/**/*
+      - docs_src/**/*
+
+internal:
+  - changed-files:
+    - any-glob-to-any-file:
+      - .github/**/*
+      - scripts/**/*
+      - .gitignore
+      - .pre-commit-config.yaml
+      - pdm_build.py
+      - requirements*.txt
diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml
new file mode 100644 (file)
index 0000000..9cbdfda
--- /dev/null
@@ -0,0 +1,12 @@
+name: Pull Request Labeler
+on:
+  pull_request_target:
+
+jobs:
+  labeler:
+    permissions:
+      contents: read
+      pull-requests: write
+    runs-on: ubuntu-latest
+    steps:
+    - uses: actions/labeler@v5