Skip to content

Commit d83382e

Browse files
committed
Add "PR Bad Target" workflow action
1 parent 4c76314 commit d83382e

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

.github/workflows/bad-target.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
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.
2+
3+
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.
4+
5+
It may help to set your fork's default branch to `bugfix-2.0.x`.
6+
7+
See [this page](http://marlinfw.org/docs/development/getting_started_pull_requests.html) for full instructions.

.github/workflows/check-pr.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#
2+
# comment-pr.yml
3+
# Add a comment to any PR directed to a release branch
4+
#
5+
6+
name: PR Bad Target
7+
8+
on:
9+
pull_request:
10+
branches:
11+
- 1.0.x
12+
- 1.1.x
13+
- 2.0.x
14+
15+
jobs:
16+
bad_target:
17+
18+
name: PR Bad Target
19+
runs-on: ubuntu-latest
20+
21+
steps:
22+
- uses: actions/checkout@v1
23+
- uses: harupy/comment-on-pr@master
24+
env:
25+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26+
with:
27+
filename: bad-target.md

0 commit comments

Comments
 (0)