From de907097ffbb1695462c75b1cd1bcbd5d0525f99 Mon Sep 17 00:00:00 2001 From: Jaco Greeff Date: Sun, 30 May 2021 22:22:05 +0300 Subject: [PATCH] lock.yml --- .github/workflows/lock.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/lock.yml diff --git a/.github/workflows/lock.yml b/.github/workflows/lock.yml new file mode 100644 index 000000000..3c7e270d6 --- /dev/null +++ b/.github/workflows/lock.yml @@ -0,0 +1,23 @@ +name: 'Lock Threads' + +on: + schedule: + - cron: '2 10 * * *' + +jobs: + lock: + runs-on: ubuntu-latest + steps: + - uses: dessant/lock-threads@v2 + with: + github-token: ${{ secrets.GH_PAT_BOT }} + issue-lock-inactive-days: '7' + issue-lock-comment: > + This thread has been automatically locked since there has not been + any recent activity after it was closed. Please open a new issue + if you think you have a related problem or query. + pr-lock-inactive-days: '2' + pr-lock-comment: > + This pull request has been automatically locked since there + has not been any recent activity after it was closed. + Please open a new issue for related bugs.