From 87a63ea0ff03657ee9328c7c3603cc5657f80fd1 Mon Sep 17 00:00:00 2001 From: Andrei Jiroh Halili Date: Thu, 26 Jan 2023 16:01:19 +0000 Subject: [PATCH] Add GHA workflow to block PRs Signed-off-by: Andrei Jiroh Halili --- .github/workflows/block-pr.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/block-pr.yml diff --git a/.github/workflows/block-pr.yml b/.github/workflows/block-pr.yml new file mode 100644 index 0000000..68cfb0c --- /dev/null +++ b/.github/workflows/block-pr.yml @@ -0,0 +1,26 @@ +name: 'Block MRs from this project' + +on: + issues: + types: opened + pull_request_target: + types: opened + schedule: + - cron: '0 * * * *' + +permissions: + issues: write + pull-requests: write + +jobs: + action: + runs-on: ubuntu-latest + steps: + - uses: dessant/repo-lockdown@v3 + with: + lock-pr: true + close-pr: true + pr-comment: | + This repository doesn't accept merge requests, see the + README for details. + pr-lock-reason: resolved