Răsfoiți Sursa

CAP-122: Add GitHub workflow to close new issues missing labels (#22356)

Jeremy Stretch 1 lună în urmă
părinte
comite
b55b50b12e
1 a modificat fișierele cu 21 adăugiri și 0 ștergeri
  1. 21 0
      .github/workflows/no-blank-issue.yml

+ 21 - 0
.github/workflows/no-blank-issue.yml

@@ -0,0 +1,21 @@
+name: Enforce issue templates
+
+on:
+  issues:
+    types:
+      - opened
+      - reopened
+
+permissions:
+  issues: write
+
+jobs:
+  no-blank-issue:
+    name: No Blank Issue
+    runs-on: ubuntu-slim
+
+    steps:
+      - name: Close new issues without labels
+        uses: ldez/no-blank-issue@800e2d0c81c9e0ca7bdb58f3e7480a74602d91e0  # v1.2.0
+        with:
+          github-token: ${{ secrets.GITHUB_TOKEN }}