Add GHA workflow to block PRs

Signed-off-by: Andrei Jiroh Halili <ajhalili2006@gmail.com>
This commit is contained in:
Andrei Jiroh Halili 2023-01-26 16:01:19 +00:00
parent d12c12ad9f
commit 87a63ea0ff
No known key found for this signature in database
GPG Key ID: 67BFC91B3DA12BE8
1 changed files with 26 additions and 0 deletions

26
.github/workflows/block-pr.yml vendored Normal file
View File

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