[ci skip] Automatically close PRs from master branches on opening (#8779)

This commit is contained in:
Jason Penilla 2023-01-09 14:43:54 -07:00
parent 3ee1c5bf3f
commit 8f79964ecd

14
.github/workflows/close_invalid_prs.yml vendored Normal file
View file

@ -0,0 +1,14 @@
name: Close invalid PRs
on:
pull_request_target:
types: [ opened ]
jobs:
run:
if: ${{ github.repository != github.event.pull_request.head.repo.full_name && github.head_ref == 'master' }}
runs-on: ubuntu-latest
steps:
- uses: superbrothers/close-pull-request@v3
with:
comment: "Please do not open pull requests from the `master` branch, create a new branch instead."