Use per-world difficulty and gamerules for monster spawn check #2367
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 == 'main' || | |
| github.event.pull_request.head.repo.owner.type != 'User' | |
| ) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: superbrothers/close-pull-request@v3 | |
| id: "main_branch" | |
| if: github.head_ref == 'main' | |
| with: | |
| comment: "Please do not open pull requests from the `main` branch, create a new branch instead." | |
| - uses: superbrothers/close-pull-request@v3 | |
| id: "org_account" | |
| if: github.event.pull_request.head.repo.owner.type != 'User' && steps.main_branch.outcome == 'skipped' | |
| with: | |
| comment: "Please do not open pull requests from non-user accounts like organizations. Create a fork on a user account instead." |