mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-27 23:10:16 +01:00
[ci skip] Automatically close PRs from master branches on opening (#8779)
This commit is contained in:
parent
3ee1c5bf3f
commit
8f79964ecd
1 changed files with 14 additions and 0 deletions
14
.github/workflows/close_invalid_prs.yml
vendored
Normal file
14
.github/workflows/close_invalid_prs.yml
vendored
Normal 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."
|
Loading…
Reference in a new issue