From cc96599d33eef71c0a3eedaa867ceb49c14d5c44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89rico=20Rolim?= Date: Tue, 2 Mar 2021 23:44:30 -0300 Subject: [PATCH] .github/workflows: add CI run to lock closed threads. Closed PRs will be locked after 90 days of inactivity, to avoid comments on old inactive threads and encourage people to create new ones, which will receive the proper attention. Inspired by hook from fish-shell: https://github.com/fish-shell/fish-shell/blob/a36dbad3b82c36352c6cf9d4bbdc58c7bd46e18a/.github/workflows/lockthreads.yml --- .github/workflows/lockthreads.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .github/workflows/lockthreads.yml diff --git a/.github/workflows/lockthreads.yml b/.github/workflows/lockthreads.yml new file mode 100644 index 000000000000..11e571abf68c --- /dev/null +++ b/.github/workflows/lockthreads.yml @@ -0,0 +1,14 @@ +name: 'Lock threads' + +on: + schedule: + - cron: '0 18 * * *' + +jobs: + lock: + runs-on: ubuntu-latest + steps: + - uses: dessant/lock-threads@v2 + with: + github-token: ${{ github.token }} + pr-lock-inactive-days: '90'