From 4feecb69d8f313b62b97807f6004704fa0faaa56 Mon Sep 17 00:00:00 2001 From: Ankush Menat Date: Wed, 27 Dec 2023 19:31:45 +0530 Subject: [PATCH] ci: lock old resolved issue/PRs --- .github/workflows/lock.yml | 21 +++++++++++++++++++++ 1 file changed, 21 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 000000000000..e990228185e1 --- /dev/null +++ b/.github/workflows/lock.yml @@ -0,0 +1,21 @@ +name: 'Lock threads' + +on: + schedule: + - cron: '0 0 * * *' + workflow_dispatch: + +permissions: + issues: write + pull-requests: write + + +jobs: + lock: + runs-on: ubuntu-latest + steps: + - uses: dessant/lock-threads@v5 + with: + github-token: ${{ github.token }} + issue-inactive-days: 14 + pr-inactive-days: 14