From 2b13505779a8860624ce221d362b7a7443372839 Mon Sep 17 00:00:00 2001 From: Kevin Deldycke Date: Mon, 12 Oct 2020 10:09:45 +0200 Subject: [PATCH] Auto-lock old issues. --- .github/workflows/autolock.yaml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/autolock.yaml diff --git a/.github/workflows/autolock.yaml b/.github/workflows/autolock.yaml new file mode 100644 index 0000000..622478f --- /dev/null +++ b/.github/workflows/autolock.yaml @@ -0,0 +1,28 @@ +# Locks closed issues and pull requests after a period of inactivity, to +# prevent spam and noise. +name: Autolock +"on": + schedule: + # Run weekly, every Monday at 8:43. + - cron: "43 8 * * 1" + +jobs: + lock: + runs-on: ubuntu-latest + steps: + - uses: dessant/lock-threads@v2.0.1 + with: + github-token: ${{ github.token }} + # Lock down after 3 months. + issue-lock-inactive-days: '90' + issue-lock-reason: 'resolved' + 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-inactive-days: '90' + pr-lock-reason: 'resolved' + 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.