Skip to content

Commit e705618

Browse files
authored
Add job to validate that PR base branch is 'develop' (#2070)
1 parent da57e0c commit e705618

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/validate_pr.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: "validate"
2+
3+
on:
4+
pull_request:
5+
types: [opened, edited, synchronize, reopened]
6+
7+
jobs:
8+
check-pr-base:
9+
name: "Pull request base is 'develop'"
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Fail if PR base is not 'develop'
13+
if: github.event.pull_request.base.ref != 'develop'
14+
run: |
15+
echo "❌ Pull request must target the 'develop' branch. Current base: '${{ github.event.pull_request.base.ref }}'"
16+
exit 1

0 commit comments

Comments
 (0)