File tree 1 file changed +23
-0
lines changed
1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments