Browse Source

Add "PR Bad Target" workflow action

Scott Lahteine 4 years ago
parent
commit
d83382eb55
2 changed files with 34 additions and 0 deletions
  1. 7
    0
      .github/workflows/bad-target.md
  2. 27
    0
      .github/workflows/check-pr.yml

+ 7
- 0
.github/workflows/bad-target.md View File

@@ -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.

+ 27
- 0
.github/workflows/check-pr.yml View File

@@ -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

Loading…
Cancel
Save