From 1e6451a9e2c5da54c407a9d08da8d6e01edc137d Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Fri, 11 Mar 2022 21:22:13 -0500 Subject: [PATCH] Automatically lock github issues after they've been closed for 90 days 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