]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
👷 Update permissions and config for labeler GitHub Action (#12008)
authorSebastián Ramírez <tiangolo@gmail.com>
Wed, 14 Aug 2024 00:30:46 +0000 (19:30 -0500)
committerGitHub <noreply@github.com>
Wed, 14 Aug 2024 00:30:46 +0000 (19:30 -0500)
.github/workflows/label-checker.yml [deleted file]
.github/workflows/labeler.yml

diff --git a/.github/workflows/label-checker.yml b/.github/workflows/label-checker.yml
deleted file mode 100644 (file)
index 20e9704..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-name: Label Checker
-on:
-  pull_request:
-    types:
-      - opened
-      - synchronize
-      - reopened
-      - labeled
-      - unlabeled
-
-jobs:
-  check_labels:
-    name: Check labels
-    runs-on: ubuntu-latest
-    steps:
-      - uses: docker://agilepathway/pull-request-label-checker:latest
-        with:
-          one_of: breaking,security,feature,bug,refactor,upgrade,docs,lang-all,internal
-          repo_token: ${{ secrets.GITHUB_TOKEN }}
index 7cb88936be436700ebca0f1d8b0446c09ec6254b..7c5b4616ac1496a12a0345905a9daedc982c4a6c 100644 (file)
@@ -19,6 +19,10 @@ jobs:
     - uses: actions/labeler@v5
   # Run this after labeler applied labels
   check-labels:
+    needs:
+      - labeler
+    permissions:
+      pull-requests: read
     name: Check labels
     runs-on: ubuntu-latest
     steps: