From 01733849f2cde316e47a457d9bfa094735d690fc Mon Sep 17 00:00:00 2001 From: algolia-bot Date: Thu, 26 Sep 2024 20:00:12 +0000 Subject: [PATCH] chore(clients): add workflow to auto-close PR (generated) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://github.com/algolia/api-clients-automation/pull/3834 Co-authored-by: algolia-bot Co-authored-by: Clément Vannicatte --- .../workflows/do-not-edit-this-repository.yml | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/do-not-edit-this-repository.yml diff --git a/.github/workflows/do-not-edit-this-repository.yml b/.github/workflows/do-not-edit-this-repository.yml new file mode 100644 index 000000000..a2abcd81e --- /dev/null +++ b/.github/workflows/do-not-edit-this-repository.yml @@ -0,0 +1,24 @@ +name: Do not edit files in this repository + +on: + pull_request: + types: + - opened + - synchronize + - reopen + branches: + - 'main' + +jobs: + auto_close_pr: + name: Close PR + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - 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)."