From 904e57d957d45e4c5fdff7f66777532a6aeee359 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 and issues 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 | 15 +++++++++++++++ 1 file changed, 15 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 00000000000..209785d3014 --- /dev/null +++ b/.github/workflows/lockthreads.yml @@ -0,0 +1,15 @@ +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 }} + issue-lock-inactive-days: '90' + pr-lock-inactive-days: '90'