From 74691a5f1686f60564e5936a2930058a7c5e9ace Mon Sep 17 00:00:00 2001 From: Viacheslav Hletenko Date: Tue, 15 Oct 2024 16:42:05 +0300 Subject: T6781: Auto-close pull requests (#4156) --- .github/workflows/pr-auto-close.yml | 17 +++++++++++++++++ 1 file changed, 17 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..36e1bba0e --- /dev/null +++ b/.github/workflows/pr-auto-close.yml @@ -0,0 +1,17 @@ +name: Auto-Close Pull Requests Circinus + +on: + pull_request: + branches: + - circinus + +jobs: + auto_close_pr: + runs-on: ubuntu-latest + steps: + - name: Close PR + run: | + set -eux + gh pr close ${{ github.event.pull_request.number }} --repo ${{ github.repository }} --comment "Pull requests to this branch are not accepted and have been closed automatically." + env: + GH_TOKEN: ${{ secrets.PAT }} -- cgit v1.2.3