From: Vasilis Date: Thu, 1 Feb 2024 14:05:01 +0000 (+0100) Subject: Action for closing prs submitted by the submitters master branch (#24094) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=5d5c4c4772739c0fdf6d289217061c8f74ac1ee8;p=space-station-14.git Action for closing prs submitted by the submitters master branch (#24094) * Action for closing master prs * Spelling mistakes and better msg * a --- diff --git a/.github/workflows/close-master-pr.yml b/.github/workflows/close-master-pr.yml new file mode 100644 index 0000000000..66843d35dd --- /dev/null +++ b/.github/workflows/close-master-pr.yml @@ -0,0 +1,27 @@ +name: Close PR's on master + +on: + pull_request_target: + types: [ opened, ready_for_review ] + +jobs: + run: + runs-on: ubuntu-latest + if: ${{github.head_ref == 'master' || github.head_ref == 'main' || github.head_ref == 'develop'}} + + steps: + - uses: superbrothers/close-pull-request@v3 + with: + comment: "Thank you for contributing to the Space Station 14 repository. Unfortunately, it looks like you submitted your pull request from the master branch. We suggest you follow [our git usage documentation](https://docs.spacestation14.com/en/general-development/setup/git-for-the-ss14-developer.html) \n\n You can move your current work from the master branch to another branch by doing `git branch