From 5f14cbfe8d0197c837e80000f1837e49b8bc07f9 Mon Sep 17 00:00:00 2001 From: Dries Vints Date: Fri, 22 Oct 2021 17:11:10 +0200 Subject: [PATCH 1/2] Auto close pull requests on illuminate repositories --- .../Auth/.github/workflows/close-pull-request.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/Illuminate/Auth/.github/workflows/close-pull-request.yml diff --git a/src/Illuminate/Auth/.github/workflows/close-pull-request.yml b/src/Illuminate/Auth/.github/workflows/close-pull-request.yml new file mode 100644 index 000000000000..3df7fce79c33 --- /dev/null +++ b/src/Illuminate/Auth/.github/workflows/close-pull-request.yml @@ -0,0 +1,13 @@ +name: Close Pull Request + +on: + pull_request_target: + types: [opened] + +jobs: + run: + runs-on: ubuntu-latest + steps: + - uses: superbrothers/close-pull-request@v3 + with: + comment: "Heya,

Thanks for your PR. You've submitted this on the Illuminate organization which is a read-only sub split of `laravel/framework`. Please submit your PR on the https://github.com/laravel/framework repository.

Thanks!" From 58a596551e98195c4d412a5a6e336c0f2962347b Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Fri, 22 Oct 2021 10:44:33 -0500 Subject: [PATCH 2/2] Update close-pull-request.yml --- src/Illuminate/Auth/.github/workflows/close-pull-request.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Illuminate/Auth/.github/workflows/close-pull-request.yml b/src/Illuminate/Auth/.github/workflows/close-pull-request.yml index 3df7fce79c33..226152e7f1eb 100644 --- a/src/Illuminate/Auth/.github/workflows/close-pull-request.yml +++ b/src/Illuminate/Auth/.github/workflows/close-pull-request.yml @@ -10,4 +10,4 @@ jobs: steps: - uses: superbrothers/close-pull-request@v3 with: - comment: "Heya,

Thanks for your PR. You've submitted this on the Illuminate organization which is a read-only sub split of `laravel/framework`. Please submit your PR on the https://github.com/laravel/framework repository.

Thanks!" + comment: "Thank you for your pull request. However, you have submitted this PR on the Illuminate organization which is a read-only sub split of `laravel/framework`. Please submit your PR on the https://github.com/laravel/framework repository.

Thanks!"