From 5a9e317f10fc3502e9b73437dbf6bcd41a850699 Mon Sep 17 00:00:00 2001 From: shortcuts Date: Mon, 16 Dec 2024 14:09:40 +0100 Subject: [PATCH 1/4] chore: trigger auto close pr --- templates/do-not-edit-this-repository.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/templates/do-not-edit-this-repository.yml b/templates/do-not-edit-this-repository.yml index a2abcd81e2..1b2bb39654 100644 --- a/templates/do-not-edit-this-repository.yml +++ b/templates/do-not-edit-this-repository.yml @@ -1,6 +1,13 @@ name: Do not edit files in this repository on: + pull_request_target: + types: + - opened + - synchronize + - reopen + branches: + - 'main' pull_request: types: - opened From d7fc9828389676c6949b9a80e7332b6dd24da205 Mon Sep 17 00:00:00 2001 From: shortcuts Date: Mon, 16 Dec 2024 14:58:24 +0100 Subject: [PATCH 2/4] chore: use github bot token --- templates/do-not-edit-this-repository.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/templates/do-not-edit-this-repository.yml b/templates/do-not-edit-this-repository.yml index 1b2bb39654..7fd3d9800a 100644 --- a/templates/do-not-edit-this-repository.yml +++ b/templates/do-not-edit-this-repository.yml @@ -25,7 +25,6 @@ jobs: - name: Close PR env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} PR_NUMBER: ${{ github.event.pull_request.number }} run: | gh pr close "${PR_NUMBER}" -d -c "Thanks for contributing to our API clients! Sorry to close your PR, but this repository is fully generated, you can port your changes to [the API Clients Automation repository](https://github.com/algolia/api-clients-automation). If you need some guidance, feel free to [open an issue](https://github.com/algolia/api-clients-automation/issues) or [read our contribution guide](https://api-clients-automation.netlify.app/docs/introduction)." From a63aa6bbcbe220ea4c3a75577d39262265030c04 Mon Sep 17 00:00:00 2001 From: shortcuts Date: Mon, 16 Dec 2024 15:01:06 +0100 Subject: [PATCH 3/4] chore: it was good --- templates/do-not-edit-this-repository.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/templates/do-not-edit-this-repository.yml b/templates/do-not-edit-this-repository.yml index 7fd3d9800a..1b2bb39654 100644 --- a/templates/do-not-edit-this-repository.yml +++ b/templates/do-not-edit-this-repository.yml @@ -25,6 +25,7 @@ jobs: - name: Close PR env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} PR_NUMBER: ${{ github.event.pull_request.number }} run: | gh pr close "${PR_NUMBER}" -d -c "Thanks for contributing to our API clients! Sorry to close your PR, but this repository is fully generated, you can port your changes to [the API Clients Automation repository](https://github.com/algolia/api-clients-automation). If you need some guidance, feel free to [open an issue](https://github.com/algolia/api-clients-automation/issues) or [read our contribution guide](https://api-clients-automation.netlify.app/docs/introduction)." From d2c7b1e59eb2d629ec64acd7acf4d59f86f60dee Mon Sep 17 00:00:00 2001 From: shortcuts Date: Mon, 16 Dec 2024 15:03:28 +0100 Subject: [PATCH 4/4] chore: enough --- templates/do-not-edit-this-repository.yml | 7 ------- 1 file changed, 7 deletions(-) diff --git a/templates/do-not-edit-this-repository.yml b/templates/do-not-edit-this-repository.yml index 1b2bb39654..bd53e40dc4 100644 --- a/templates/do-not-edit-this-repository.yml +++ b/templates/do-not-edit-this-repository.yml @@ -8,13 +8,6 @@ on: - reopen branches: - 'main' - pull_request: - types: - - opened - - synchronize - - reopen - branches: - - 'main' jobs: auto_close_pr: