From 59efa4739341bacbfe6fdbbdb661d59ed29b6cca Mon Sep 17 00:00:00 2001 From: Kevin Lewis Date: Tue, 29 Jul 2025 11:18:31 +0200 Subject: [PATCH 1/2] Delete .github/pull_request_template.yml --- .github/pull_request_template.yml | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100644 .github/pull_request_template.yml diff --git a/.github/pull_request_template.yml b/.github/pull_request_template.yml deleted file mode 100644 index 3962826..0000000 --- a/.github/pull_request_template.yml +++ /dev/null @@ -1,15 +0,0 @@ - From 436f37e256e16d03eef449009c2acc321ed721f7 Mon Sep 17 00:00:00 2001 From: Kevin Lewis Date: Tue, 29 Jul 2025 11:18:45 +0200 Subject: [PATCH 2/2] Delete .github/workflows/close-pull-request.yml --- .github/workflows/close-pull-request.yml | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 .github/workflows/close-pull-request.yml diff --git a/.github/workflows/close-pull-request.yml b/.github/workflows/close-pull-request.yml deleted file mode 100644 index e5a4f8f..0000000 --- a/.github/workflows/close-pull-request.yml +++ /dev/null @@ -1,20 +0,0 @@ -name: Auto close pull requests -on: - pull_request_target: - types: [opened, labeled, unlabeled, reopened] - -jobs: - auto_close: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v2 - - - name: Close PR if not pre-approved - if: ${{ !(contains(github.event.pull_request.labels.*.name, 'pre-approved')) && !(contains(github.event.pull_request.body, '@phazonoverload')) }} - run: | - MESSAGE="This repository doesn't accept pull requests. Please fork the repository and make changes there. If you really need this PR to be merged you must be an admin and label this pr with the 'pre-approved' label *or* tag Kevin Lewis (\`@phazonoverload\`) to take a look." - # TODO: Update repo name - gh pr close ${{ github.event.pull_request.number }} --repo education/codespaces-project-template-js --comment "$MESSAGE" - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}