]> git.ipfire.org Git - thirdparty/fastapi/sqlmodel.git/commitdiff
👷 Update configs for GitHub Action labeler, to add only one label (#1072)
authorSebastián Ramírez <tiangolo@gmail.com>
Wed, 14 Aug 2024 19:02:07 +0000 (14:02 -0500)
committerGitHub <noreply@github.com>
Wed, 14 Aug 2024 19:02:07 +0000 (14:02 -0500)
.github/labeler.yml
.github/workflows/labeler.yml

index f4ee6649db0864ce3fa2d1b104e0eebd1bb04205..1af3d5e408949c351d262e64f89289b8ecd45419 100644 (file)
@@ -1,15 +1,24 @@
 docs:
-  - changed-files:
-    - any-glob-to-any-file:
-      - docs/**/*
-      - docs_src/**/*
+  - all:
+    - changed-files:
+      - any-glob-to-any-file:
+        - docs/**
+        - docs_src/**
+      - all-globs-to-all-files:
+        - '!sqlmodel/**'
+        - '!pyproject.toml'
 
 internal:
-  - changed-files:
-    - any-glob-to-any-file:
-      - .github/**/*
-      - scripts/**/*
-      - .gitignore
-      - .pre-commit-config.yaml
-      - pdm_build.py
-      - requirements*.txt
+  - all:
+    - changed-files:
+      - any-glob-to-any-file:
+        - .github/**
+        - scripts/**
+        - .gitignore
+        - .pre-commit-config.yaml
+        - pdm_build.py
+        - requirements*.txt
+      - all-globs-to-all-files:
+        - '!docs/**'
+        - '!sqlmodel/**'
+        - '!pyproject.toml'
index 7c5b4616ac1496a12a0345905a9daedc982c4a6c..d62f1668d52bcb09c66f829ac3b2e3e703a47ff0 100644 (file)
@@ -1,4 +1,4 @@
-name: Pull Request Labeler and Checker
+name: Labels
 on:
   pull_request_target:
     types:
@@ -17,13 +17,14 @@ jobs:
     runs-on: ubuntu-latest
     steps:
     - uses: actions/labeler@v5
+      with:
+        sync-labels: true
   # Run this after labeler applied labels
   check-labels:
     needs:
       - labeler
     permissions:
       pull-requests: read
-    name: Check labels
     runs-on: ubuntu-latest
     steps:
       - uses: docker://agilepathway/pull-request-label-checker:latest