M1Screw hace 1 año
padre
commit
b8664a37a5
Se han modificado 1 ficheros con 22 adiciones y 0 borrados
  1. 22 0
      .github/workflows/lockdown.yml

+ 22 - 0
.github/workflows/lockdown.yml

@@ -0,0 +1,22 @@
+name: Lockdown
+on:
+  issues:
+    types: [opened]
+  issue_comment:
+    types: [created]
+
+jobs:
+  closeAndlock:
+    runs-on: ubuntu-latest
+    permissions:
+      issues: write
+      pull-requests: write
+
+    steps:
+    - name: Close & Lock Issue
+      run: |
+        gh issue close --reason "not planned" ${{ github.event.issue.number }}
+        gh issue lock --reason "spam" ${{ github.event.issue.number }}
+      env:
+        GH_REPO: ${{ github.repository }}
+        GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}