From cdc6e23aeb7f4953c1039568c3439aab60c56454 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Sat, 11 May 2024 09:35:57 +0200 Subject: [PATCH] Revert "minor #4042 Auto-close PRs on subtree-splits (kbond)" This reverts commit 12625c0c050db5a71d94ab8d599bf711673a41c3, reversing changes made to ad934312cd08b6b466932fdfdd5b97ae680bc28a. --- .gitattributes | 1 - .github/PULL_REQUEST_TEMPLATE.md | 8 ------ .github/workflows/check-subtree-split.yml | 33 ----------------------- 3 files changed, 42 deletions(-) delete mode 100644 .github/PULL_REQUEST_TEMPLATE.md delete mode 100644 .github/workflows/check-subtree-split.yml diff --git a/.gitattributes b/.gitattributes index 14c3c35..aa02dc6 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,3 +1,2 @@ /Tests export-ignore /phpunit.xml.dist export-ignore -/.git* export-ignore diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md deleted file mode 100644 index bbfa2c8..0000000 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ /dev/null @@ -1,8 +0,0 @@ -Please do not submit any Pull Requests here. They will be closed. ---- - -Please submit your PR here instead: -https://github.com/twigphp/Twig - -This repository is what we call a "subtree split": a read-only subset of that main repository. -We're looking forward to your PR there! diff --git a/.github/workflows/check-subtree-split.yml b/.github/workflows/check-subtree-split.yml deleted file mode 100644 index ff6742d..0000000 --- a/.github/workflows/check-subtree-split.yml +++ /dev/null @@ -1,33 +0,0 @@ -name: Check subtree split -on: - pull_request_target: -jobs: - close-pull-request: - runs-on: ubuntu-latest - steps: - - name: Close pull request - uses: actions/github-script@v6 - with: - script: | - if (context.repo.owner === "twigphp") { - github.rest.issues.createComment({ - owner: "twigphp", - repo: context.repo.repo, - issue_number: context.issue.number, - body: ` - Thanks for your Pull Request! We love contributions. - - However, you should instead open your PR on the main repository: - https://github.com/twigphp/Twig - - This repository is what we call a "subtree split": a read-only subset of that main repository. - We're looking forward to your PR there! - ` - }); - github.rest.pulls.update({ - owner: "twigphp", - repo: context.repo.repo, - pull_number: context.issue.number, - state: "closed" - }); - }