docs: Add lockdown workflow

Add workflow to automatically close any issue or pull request
This commit is contained in:
4s3ti 2024-04-06 12:53:42 +02:00
parent ecd75e77ab
commit 2f64b12ec1
No known key found for this signature in database
GPG key ID: AC2D3B898F96BC51

31
.github/workflows/lockdown.yaml vendored Normal file
View file

@ -0,0 +1,31 @@
name: 'Repo Lockdown'
on:
issues:
types: opened
pull_request_target:
types: opened
permissions:
issues: write
pull-requests: write
jobs:
action:
runs-on: ubuntu-latest
steps:
- uses: dessant/repo-lockdown@v4
with:
github-token: ${{ github.token }}
issue-comment: |
Thank you for opening an issue however,
PiVPN is in read-only mode, issues are not accepted.
More info is available in the README.
Github discussions is still available if you want help from community.
pr-comment: |
Thank you for your pull request however,
PiVPN is in read-only mode, pull requests are not accepted.
More info is available in the README.
Github discussions is still available if you want help from community.