1
0
mirror of https://github.com/MarlinFirmware/Marlin.git synced 2024-11-23 20:18:52 +00:00
MarlinFirmware/.github/workflows/check-pr.yml

34 lines
915 B
YAML
Raw Normal View History

2020-02-04 15:41:26 +00:00
#
2020-07-02 23:10:33 +00:00
# check-pr.yml
# Close PRs directed at release branches
2020-02-04 15:41:26 +00:00
#
name: PR Bad Target
on:
pull_request:
branches:
- 1.0.x
- 1.1.x
- 2.0.x
jobs:
bad_target:
name: PR Bad Target
2020-07-05 20:23:07 +00:00
if: github.repository == 'MarlinFirmware/Marlin'
2020-02-04 15:41:26 +00:00
runs-on: ubuntu-latest
steps:
2020-07-02 23:10:33 +00:00
- uses: peter-evans/close-pull@v1
with:
delete-branch: false
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.
Please redo this PR starting with the `bugfix-2.0.x` branch and be careful to target `bugfix-2.0.x` when resubmitting the PR.
It may help to set your fork's default branch to `bugfix-2.0.x`.
See [this page](http://marlinfw.org/docs/development/getting_started_pull_requests.html) for full instructions.