diff --git a/.github/workflows/close-fork-pull-requests.yml b/.github/workflows/close-fork-pull-requests.yml deleted file mode 100644 index 0f2d8c552..000000000 --- a/.github/workflows/close-fork-pull-requests.yml +++ /dev/null @@ -1,23 +0,0 @@ -name: Close pull requests from forks - -on: - pull_request_target: - types: [opened] - -permissions: {} - -jobs: - close: - # A branch in this repository needs write access, so only forks are closed. The mirror's - # world-mirror/main branch and the maintainers' own branches are never touched. - if: github.event.pull_request.head.repo.full_name != github.repository - runs-on: ubuntu-latest - permissions: - pull-requests: write - steps: - - name: Close with a comment - env: - GH_TOKEN: ${{ github.token }} - PR_URL: ${{ github.event.pull_request.html_url }} - run: | - gh pr close "$PR_URL" --comment "Thanks for this! This repository is a read-only mirror of Shopify's monorepo, so we can't merge pull requests here. If the change is still needed, please open an issue and link this pull request. CONTRIBUTING.md has the details."