From e1399944645c0e2fb82d015116201623ff40a65f Mon Sep 17 00:00:00 2001 From: Lexus Drumgold Date: Fri, 3 Sep 2021 22:21:40 -0400 Subject: [PATCH] ci(workflows): add `lock-inactive-threads` --- .github/workflows/lock-inactive-threads.yml | 29 +++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/lock-inactive-threads.yml diff --git a/.github/workflows/lock-inactive-threads.yml b/.github/workflows/lock-inactive-threads.yml new file mode 100644 index 00000000..5bb0ad73 --- /dev/null +++ b/.github/workflows/lock-inactive-threads.yml @@ -0,0 +1,29 @@ +# Lock Inactive Threads +# +# References: +# +# - https://github.com/dessant/lock-threads + +--- +name: lock-inactive-threads +on: + schedule: + - cron: '0 0 * * *' +jobs: + lock: + name: Lock inactive issues and pull requests + runs-on: ubuntu-latest + steps: + - uses: dessant/lock-threads@v2 + with: + github-token: ${{ github.token }} + 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. Make sure to reference this issue. + issue-lock-inactive-days: 30 + 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. Make sure to reference this issue. + pr-lock-inactive-days: 30