check-pr.yml 996 B

12345678910111213141516171819202122232425262728293031
  1. #
  2. # check-pr.yml
  3. # Add a comment to the PR if it's directed to a release branch
  4. #
  5. name: Check PR
  6. on:
  7. pull_request:
  8. branches:
  9. - 1.0.x
  10. - 1.1.x
  11. - 2.0.x
  12. jobs:
  13. check_pr:
  14. runs-on: ubuntu-latest
  15. steps:
  16. - name: Comment on PR
  17. uses: unsplash/comment-on-pr@master
  18. env:
  19. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  20. with:
  21. msg: "<p>Thanks for your contribution! \
  22. Unfortunately we can't accept PRs directed at release branches. \
  23. We make patches to the bugfix branches and only later do we push them out as releases. \
  24. 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.</p> \
  25. <p>It may help to set your fork's default branch to `bugfix-2.0.x`.</p> \
  26. <p>See <a href='http://marlinfw.org/docs/development/getting_started_pull_requests.html' target='_blank'>this page</a> for full instructions.</p>"