From 51c3f2a6458205e1c9b3271f4f9ef82d4358b033 Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Sat, 12 Mar 2022 04:15:54 -0500 Subject: [PATCH] Automatically lock github issues after they've been closed for 90 days (#189) This will help ensure issues are not ressurected long after they're closed. --- .github/workflows/lock.yml | 19 +++++++++++++++++++ 1 file changed, 19 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 00000000..aa693c3f --- /dev/null +++ b/.github/workflows/lock.yml @@ -0,0 +1,19 @@ +name: Lock Issues +on: + workflow_dispatch: + schedule: + - cron: '0 0 * * *' + +permissions: + issues: "write" + +jobs: + lock: + if: github.repository_owner == 'certifi' + runs-on: ubuntu-latest + steps: + - uses: dessant/lock-threads@v3 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + issue-inactive-days: 90 + pr-inactive-days: 90