From 1cc701d89798fbce0076fcdfbdefda0914718ef7 Mon Sep 17 00:00:00 2001 From: Carlos Alexandro Becker Date: Wed, 18 Nov 2020 15:31:20 -0300 Subject: [PATCH] chore(ci): lock inactive issues/prs --- .github/workflows/lock.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 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 00000000000..9a8bd0cc31a --- /dev/null +++ b/.github/workflows/lock.yml @@ -0,0 +1,26 @@ +name: lock-inactive + +on: + push: + branches: + - 'master' + schedule: + - cron: '0 * * * *' + +jobs: + lock: + runs-on: ubuntu-latest + steps: + - uses: dessant/lock-threads@v2 + with: + github-token: ${{ github.token }} + issue-lock-inactive-days: 30 + pr-lock-inactive-days: 30 + issue-lock-comment: > + This issue has been automatically locked since there + has not been any recent activity after it was closed. + Please open a new issue for related bugs. + 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.