From ca306e1c0679d92e38de477fff95c1345be03a56 Mon Sep 17 00:00:00 2001 From: FoxxoTrystan Date: Fri, 25 Oct 2024 13:14:40 +0200 Subject: [PATCH] commit --- .github/workflows/unstable-pr.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/unstable-pr.yml diff --git a/.github/workflows/unstable-pr.yml b/.github/workflows/unstable-pr.yml new file mode 100644 index 0000000000..e52b28a0ad --- /dev/null +++ b/.github/workflows/unstable-pr.yml @@ -0,0 +1,20 @@ +name: Close PRs to master + +on: + pull_request_target: + types: [ opened, ready_for_review ] + +jobs: + run: + runs-on: ubuntu-latest + if: ${{github.base_ref == 'master'}} + + - uses: actions/github-script@v7 + with: + script: | + github.rest.issues.createComment({ + issue_number: ${{ github.event.number }}, + owner: context.repo.owner, + repo: context.repo.repo, + body: "Thank you for contributing to FloofStation repository. Unfortunately, it looks like you submitted your pull request to the master branch, Please move this PR to the Unstable Branch." + })