Skip to content

Commit 0d44331

Browse files
authored
Create dev-branch
1 parent be5229b commit 0d44331

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/dev-branch

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Make sure new PRs are sent to development
2+
3+
on:
4+
pull_request_target:
5+
types: [opened, edited]
6+
7+
jobs:
8+
check-branch:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
pull-requests: write
12+
steps:
13+
# Do not checkout the repository here. See https://securitylab.github.com/research/github-actions-preventing-pwn-requests/ for more information
14+
- uses: Vankka/pr-target-branch-action@v3
15+
env:
16+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
17+
with:
18+
target: main
19+
exclude: dev # Don't prevent going from development -> main
20+
change-to: dev
21+
comment: |
22+
Your PR's base branch was set to `main`, PRs should be set to target `dev`.
23+
The base branch of this PR has been automatically changed to `development`, please check that there are no merge conflicts

0 commit comments

Comments
 (0)