Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .github/workflows/check-pr-target-branch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Check PR Target Branch

on:
pull_request:
types: [opened, edited]

jobs:
check-branch:
runs-on: ubuntu-latest
steps:
- name: Check if PR targets latest branch
run: |
if [ "${{ github.base_ref }}" != "latest" ]; then
echo "::warning::This PR is targeting '${{ github.base_ref }}' branch instead of 'latest'"
echo "Consider changing the base branch to 'latest' unless this is intentional"
fi
Loading