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.
This commit is contained in:
Ondřej Surý 2021-03-08 12:09:14 +01:00
parent 42e8db9e74
commit 2463f62c93

15
.github/workflows/lockdown.yml vendored Normal file
View file

@ -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 }}