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

This commit is contained in:
Jason 2023-01-09 14:43:54 -07:00 committed by GitHub
parent 214a8c54a4
commit fb90721a94
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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."