]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Add GitHub Action that immediately closes issue / PRs
authorOndřej Surý <ondrej@isc.org>
Mon, 8 Mar 2021 11:09:14 +0000 (12:09 +0100)
committerOndřej Surý <ondrej@isc.org>
Mon, 8 Mar 2021 11:09:14 +0000 (12:09 +0100)
Unfortunately, it's not possible to disable Pull Requests on the
mirrored repository on the GitHub, so this commit adds external action
that closes any new open Issue or Pull Requests instead letting them rot
unnoticed.

.github/workflows/lockdown.yml [new file with mode: 0644]

diff --git a/.github/workflows/lockdown.yml b/.github/workflows/lockdown.yml
new file mode 100644 (file)
index 0000000..7dc424e
--- /dev/null
@@ -0,0 +1,15 @@
+- name: 'Lock down mirror repository'
+
+on:
+  issues:
+    types: opened
+  pull_request:
+    types: opened
+
+jobs:
+  lockdown:
+    runs-on: ubuntu-latest
+    steps:
+      - uses: dessant/repo-lockdown@v2
+        with:
+          github-token: ${{ github.token }}