Skip to content

Commit c6cf656

Browse files
committed
chore: enforce PRs — block direct pushes to main
1 parent 5615106 commit c6cf656

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Prevent Direct Pushes to Default Branch
2+
on:
3+
push:
4+
branches:
5+
- main
6+
jobs:
7+
block:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Block direct pushes
11+
run: |
12+
echo "🚫 Direct pushes to main are not allowed. Please open a Pull Request."
13+
exit 1

0 commit comments

Comments
 (0)