This commit is contained in:
Jun Pataleta 2024-02-08 12:10:06 +08:00 committed by Andrew Nicols
commit 72bb1899e0
No known key found for this signature in database
GPG key ID: 6D1E3157C8CFBF14

View file

@ -0,0 +1,30 @@
name: 'Close Pull Requests'
on:
pull_request_target:
types: opened
workflow_dispatch:
jobs:
close:
# Avoid forks to run this job
if: github.repository_owner == 'moodlehq'
name: Close Pull Requests
runs-on: ubuntu-latest
steps:
- uses: dessant/repo-lockdown@v4
with:
process-only: prs
close-pr: true
pr-comment: >
**Please, don't open pull requests via GitHub.**
This repository (moodle.git) at GitHub is just a mirror of the official Moodle repository.
For how to contribute patches for Moodle see
[CONTRIBUTING.txt](https://github.com/moodle/moodle/blob/main/CONTRIBUTING.txt).
Closing this pull request.