From a83dac6214cdf2bc3865650c7df1e4f01aa506ab Mon Sep 17 00:00:00 2001 From: dessant Date: Tue, 2 Nov 2021 09:10:26 +0200 Subject: [PATCH] chore: disable pull requests --- .github/pull_request_template.md | 1 + .github/workflows/lockdown.yml | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 .github/pull_request_template.md create mode 100644 .github/workflows/lockdown.yml diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md new file mode 100644 index 0000000..e24b16c --- /dev/null +++ b/.github/pull_request_template.md @@ -0,0 +1 @@ +This project does not accept pull requests. Please use issues to report bugs or suggest new features. diff --git a/.github/workflows/lockdown.yml b/.github/workflows/lockdown.yml new file mode 100644 index 0000000..dee9324 --- /dev/null +++ b/.github/workflows/lockdown.yml @@ -0,0 +1,18 @@ +name: 'Repo Lockdown' + +on: + pull_request_target: + types: opened + +permissions: + pull-requests: write + +jobs: + action: + runs-on: ubuntu-latest + steps: + - uses: dessant/repo-lockdown@v2 + with: + exclude-pr-created-before: '2021-11-02T00:00:00Z' + pr-comment: 'This project does not accept pull requests. Please use issues to report bugs or suggest new features.' + process-only: 'prs'