From d83382eb55043806655b85f8a33e1db545440d4f Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Tue, 4 Feb 2020 09:41:26 -0600 Subject: [PATCH] Add "PR Bad Target" workflow action --- .github/workflows/bad-target.md | 7 +++++++ .github/workflows/check-pr.yml | 27 +++++++++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 .github/workflows/bad-target.md create mode 100644 .github/workflows/check-pr.yml diff --git a/.github/workflows/bad-target.md b/.github/workflows/bad-target.md new file mode 100644 index 000000000..048e56cfd --- /dev/null +++ b/.github/workflows/bad-target.md @@ -0,0 +1,7 @@ +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. diff --git a/.github/workflows/check-pr.yml b/.github/workflows/check-pr.yml new file mode 100644 index 000000000..a6246a378 --- /dev/null +++ b/.github/workflows/check-pr.yml @@ -0,0 +1,27 @@ +# +# comment-pr.yml +# Add a comment to any PR directed to a release branch +# + +name: PR Bad Target + +on: + pull_request: + branches: + - 1.0.x + - 1.1.x + - 2.0.x + +jobs: + bad_target: + + name: PR Bad Target + 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