We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 730e629 commit 0e586c7Copy full SHA for 0e586c7
1 file changed
.github/workflows/enforce-develop-pr.yml
@@ -0,0 +1,16 @@
1
+name: Enforce PRs targeting develop
2
+
3
+on:
4
+ pull_request:
5
+ branches: [main]
6
7
+jobs:
8
+ check-source-branch:
9
+ runs-on: ubuntu-latest
10
+ steps:
11
+ - name: Fail if PR targets main
12
+ run: |
13
+ if [[ "${{ github.head_ref }}" != "develop" ]]; then
14
+ echo "Pull requests to 'main' are not allowed. Please target 'develop' instead."
15
+ exit 1
16
+ fi
0 commit comments