Skip to content

Add more versions to MinecraftVersions.kt #160

Add more versions to MinecraftVersions.kt

Add more versions to MinecraftVersions.kt #160

name: Make sure PRs target the dev branch

Check warning on line 1 in .github/workflows/pr_check_target_branch.yml

View workflow run for this annotation

GitHub Actions / Make sure PRs target the dev branch

Workflow execution policy warning (evaluate mode)

On December 2, 2026, GitHub will restrict `pull_request_target` on public repositories by default. To continue allowing the event trigger, configure an Actions policy. Learn more: https://gh.io/securely-using-pull_request_target#default-policy-for-pull_request_target
on:
pull_request_target:
types: [opened, edited]
jobs:
check-branch:
runs-on: ubuntu-latest
steps:
# Do not check out the repository here. See https://securitylab.github.com/research/github-actions-preventing-pwn-requests/
- uses: Vankka/pr-target-branch-action@v3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
target: /\d+\.\d/
exclude: dev
change-to: dev
already-exists-action: nothing
comment: |
New PRs should target the `dev` branch. The base branch of this PR has been automatically changed to `dev`.
Please check that there are no merge conflicts.