From 2463f62c9356b44a997bfcc7457157542329af94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Sur=C3=BD?= Date: Mon, 8 Mar 2021 12:09:14 +0100 Subject: [PATCH] Add GitHub Action that immediately closes issue / PRs 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 | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .github/workflows/lockdown.yml diff --git a/.github/workflows/lockdown.yml b/.github/workflows/lockdown.yml new file mode 100644 index 0000000000..7dc424ed9e --- /dev/null +++ b/.github/workflows/lockdown.yml @@ -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 }}