Skip to content

Commit

Permalink
Patch Bad PR action
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead committed Jul 4, 2020
1 parent 842dea4 commit ed71108
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 15 deletions.
7 changes: 0 additions & 7 deletions .github/workflows/bad-target.md

This file was deleted.

21 changes: 13 additions & 8 deletions .github/workflows/check-pr.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# comment-pr.yml
# Add a comment to any PR directed to a release branch
# check-pr.yml
# Close PRs directed at release branches
#

name: PR Bad Target
Expand All @@ -19,9 +19,14 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- uses: harupy/comment-on-pr@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
filename: bad-target.md
- 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.

0 comments on commit ed71108

Please sign in to comment.