Marlin/.github/workflows/check-pr.yml

35 lines
1,013 B
YAML
Raw Normal View History

2022-05-24 03:03:59 +00:00
#
# check-pr.yml
# Close PRs directed at release branches
#
name: PR Bad Target
on:
pull_request_target:
types: [opened]
branches:
- 1.0.x
- 1.1.x
- 2.0.x
2022-06-06 01:25:58 +00:00
- 2.1.x
2022-05-24 03:03:59 +00:00
jobs:
bad_target:
name: PR Bad Target
if: github.repository == 'MarlinFirmware/Marlin'
runs-on: ubuntu-latest
steps:
- uses: superbrothers/close-pull-request@v3
with:
comment: >
Thanks for your contribution! Unfortunately we can't accept PRs directed at release branches. We make patches to the bugfix branches and only later do we push them out as releases.
2022-06-06 01:25:58 +00:00
Please redo this PR starting with the `bugfix-2.1.x` branch and be careful to target `bugfix-2.1.x` when resubmitting the PR. Patches may also target `bugfix-2.0.x` if they are specifically for 2.0.9.x.
2022-05-24 03:03:59 +00:00
2022-06-06 01:25:58 +00:00
It may help to set your fork's default branch to `bugfix-2.0.x`.
2022-05-24 03:03:59 +00:00
2022-08-26 04:45:07 +00:00
See [this page](https://marlinfw.org/docs/development/getting_started_pull_requests.html) for full instructions.