Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-11-15 04:20:04 +01:00
[ci skip] Automatically close PRs from master branches on opening (#8779)
Dieser Commit ist enthalten in:
Ursprung
214a8c54a4
Commit
fb90721a94
14
.github/workflows/close_invalid_prs.yml
vendored
Normale Datei
14
.github/workflows/close_invalid_prs.yml
vendored
Normale Datei
@ -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."
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren