From d91e5f8bc61a012b0882ca23b6ff63839a8d2f33 Mon Sep 17 00:00:00 2001 From: Hiroki Osame Date: Wed, 6 Dec 2023 23:50:08 +0900 Subject: [PATCH] ci: lock stale issues & prs --- .github/workflows/lock-issues.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/lock-issues.yml diff --git a/.github/workflows/lock-issues.yml b/.github/workflows/lock-issues.yml new file mode 100644 index 000000000..8da7335a5 --- /dev/null +++ b/.github/workflows/lock-issues.yml @@ -0,0 +1,26 @@ +name: Lock Issues & PRs + +on: + schedule: + - cron: '0 0 * * 0' # Every Sunday + +jobs: + lock: + runs-on: ubuntu-latest + + permissions: + issues: write + pull-requests: write + discussions: write + + steps: + - name: Lock Issues & PRs + uses: dessant/lock-threads@v5 + with: + github-token: ${{ github.token }} + issue-inactive-days: '91' + add-issue-labels: 'outdated' + pr-inactive-days: '91' + add-pr-labels: 'outdated' + discussion-inactive-days: '91' + add-discussion-labels: 'outdated'