From fc57bed9feac284fbdef9a20ce52789214f7888d Mon Sep 17 00:00:00 2001 From: Viacheslav Hletenko Date: Wed, 16 Oct 2024 07:17:41 +0000 Subject: T6781: Auto-close pull requests for sagitta --- .github/workflows/pr-auto-close.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/pr-auto-close.yml diff --git a/.github/workflows/pr-auto-close.yml b/.github/workflows/pr-auto-close.yml new file mode 100644 index 000000000..947108805 --- /dev/null +++ b/.github/workflows/pr-auto-close.yml @@ -0,0 +1,18 @@ +name: Auto-Close Pull Requests Sagitta + +on: + pull_request_target: + types: + - opened + branches: + - sagitta + +jobs: + run: + runs-on: ubuntu-latest + steps: + - uses: superbrothers/close-pull-request@v3 + with: + # Optional. Post a issue comment just before closing a pull request. + comment: "Pull requests to this branch are not accepted and have been closed automatically." + github_token: ${{ secrets.PAT }} -- cgit v1.2.3