From f17649fe2235a9ea1c4b17fffea0fe0f224c5b10 Mon Sep 17 00:00:00 2001 From: FoxxoTrystan Date: Fri, 25 Oct 2024 13:15:44 +0200 Subject: [PATCH] Close instead --- .github/workflows/unstable-pr.yml | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/.github/workflows/unstable-pr.yml b/.github/workflows/unstable-pr.yml index e52b28a0ad..3b4d271f98 100644 --- a/.github/workflows/unstable-pr.yml +++ b/.github/workflows/unstable-pr.yml @@ -9,12 +9,7 @@ jobs: runs-on: ubuntu-latest if: ${{github.base_ref == 'master'}} - - uses: actions/github-script@v7 + steps: + - uses: superbrothers/close-pull-request@v3 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." - }) + comment: "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."