gha: Add workflow to check that PRs target trunk

This commit is contained in:
Mintsuki
2025-03-15 16:52:37 +01:00
parent 2700f94006
commit 3a42f558ff

15
.github/workflows/pr_branch_check.yml vendored Normal file
View File

@@ -0,0 +1,15 @@
name: Check that the PR is targetting trunk
on: [ pull_request ]
jobs:
pr_branch_check:
name: Check that the PR is targetting trunk
runs-on: ubuntu-latest
steps:
- name: Check that the PR is targetting trunk
if: ${{ github.base_ref != 'trunk' }}
run: |
set -e
echo "The PR is not targetting the trunk branch, please fix that."
false