We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 751c97e commit 10fdeb2Copy full SHA for 10fdeb2
.github/CODEOWNERS
@@ -0,0 +1 @@
1
+@injas427
.github/workflows/restrict-merges.yml
@@ -0,0 +1,19 @@
+name: Enforce Merge Source Branch
2
+
3
+on:
4
+ pull_request:
5
+ branches:
6
+ - main # Replace with your protected branch name
7
8
+jobs:
9
+ restrict-source-branch:
10
+ runs-on: ubuntu-latest
11
12
+ steps:
13
+ - name: Check source branch
14
+ run: |
15
+ if [[ "${{ github.base_ref }}" != "main" || "${{ github.head_ref }}" != "develop" ]]; then
16
+ echo "Pull requests to main must originate from develop."
17
+ exit 1
18
+ fi
19
+ shell: bash
0 commit comments