diff --git a/.github/workflows/stable-pr.yml b/.github/workflows/stable-pr.yml new file mode 100644 index 0000000000..7e4cecb95a --- /dev/null +++ b/.github/workflows/stable-pr.yml @@ -0,0 +1,15 @@ +name: Close PRs to stable + +on: + pull_request_target: + types: [ opened, ready_for_review ] + +jobs: + run: + runs-on: ubuntu-latest + if: ${{github.base_ref == 'stable' && github.actor != 'Fansana'}} + + steps: + - uses: superbrothers/close-pull-request@v3 + with: + comment: "Thank you for contributing to Floof Station repository. Unfortunately, it looks like you submitted your pull request to the stable branch, Please move this PR to the master Branch."