-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
32 lines (24 loc) · 959 Bytes
/
check-pr.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#
# check-pr.yml
# Close PRs directed at `bugfix-2.x.x`
#
name: PR Bad Target
on:
pull_request_target:
types: [opened]
branches:
- bugfix-2.0.x
- bugfix-2.1.x
jobs:
bad_target:
name: PR Bad Target
if: github.repository == 'MarlinFirmware/Configurations'
runs-on: ubuntu-22.04
steps:
- uses: superbrothers/close-pull-request@v3
with:
comment: >
Thanks for your contribution! Unfortunately we can't accept PRs directed at the `bugfix-2.x.x` branch. We make patches to `import-2.x.x` and then generate `bugfix-2.x.x` and `release-x.x.x` from that.
Please redo this PR starting with the current `import-2.1.x` branch and be careful to target `import-2.1.x` when resubmitting the PR.
It may help to set your fork's default branch to `import-2.1.x`.
See [this page](https://marlinfw.org/docs/development/getting_started_pull_requests.html) for full instructions.